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.SecureInputHandlerAnt helper class to ask for passwords, rejecting zero length passwords and asking for confirmation.
-
-
Constructor Summary
Constructors Constructor Description PasswordHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleInput(org.apache.tools.ant.input.InputRequest arg0)private booleanpasswordSavesOK(String password)Spool the file to aPropertiesWithComments, read it in again as aPropertiesand check for equivalence.
-
-
-
Method Detail
-
passwordSavesOK
private boolean passwordSavesOK(@Nonnull @NotEmpty String password)
Spool the file to aPropertiesWithComments, read it in again as aPropertiesand 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:
handleInputin interfaceorg.apache.tools.ant.input.InputHandler- Overrides:
handleInputin classorg.apache.tools.ant.input.SecureInputHandler
-
-