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 TypeMethodDescriptionvoid
handleInput
(org.apache.tools.ant.input.InputRequest arg0) private boolean
passwordSavesOK
(String password) Spool the file to aPropertiesWithComments
, read it in again as aProperties
and 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 aProperties
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 interfaceorg.apache.tools.ant.input.InputHandler
- Overrides:
handleInput
in classorg.apache.tools.ant.input.SecureInputHandler
-