Class PasswordHandler

java.lang.Object
org.apache.tools.ant.input.DefaultInputHandler
org.apache.tools.ant.input.SecureInputHandler
net.shibboleth.idp.installer.ant.impl.PasswordHandler
All Implemented Interfaces:
org.apache.tools.ant.input.InputHandler

public class PasswordHandler extends org.apache.tools.ant.input.SecureInputHandler
Ant helper class to ask for passwords, rejecting zero length passwords and asking for confirmation.
  • Constructor Details

    • PasswordHandler

      public PasswordHandler()
  • Method Details

    • passwordSavesOK

      private boolean passwordSavesOK(@Nonnull @NotEmpty String password)
      Spool the file to a PropertiesWithComments, read it in again as a Properties and check for equivalence.
      Parameters:
      password - what to look at
      Returns:
      if the password can go to a property file OK
    • handleInput

      public void handleInput(org.apache.tools.ant.input.InputRequest arg0)
      Specified by:
      handleInput in interface org.apache.tools.ant.input.InputHandler
      Overrides:
      handleInput in class org.apache.tools.ant.input.SecureInputHandler