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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleInput(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.Methods inherited from class org.apache.tools.ant.input.DefaultInputHandler
getInputStream, getPrompt
-
Constructor Details
-
PasswordHandler
public PasswordHandler()
-
-
Method Details
-
passwordSavesOK
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
-