Class GetPasswordConsole
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.console.GetPasswordConsole
-
- All Implemented Interfaces:
Referenceable
public final class GetPasswordConsole extends Action
The panel allows developers to request a password from the end user.
The password can be validate against a list passwords. To define the list of valid password set the passwordFile property, which expects a text file separated by the line ending character (\n).
-
-
Constructor Summary
Constructors Constructor Description GetPasswordConsole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAllowBlankInput()Whether or not the allow password to be left blank.booleangetConfirmPassword()Whether the password to be confirmed.java.lang.StringgetInstructions()Returns the panel instructions to display.java.lang.StringgetMatchingIndexResultVar()Returns the name of the variable where to store the index of the matching password.java.lang.StringgetPasswordFile()The text file which contains the list of valid passwords.java.lang.StringgetPasswordResultVar()Returns the name of the variable where to store the entered password.java.util.Vector<java.lang.String>getPasswordsList()Get the password list.java.lang.StringgetPrompt()Returns the panel's prompt to display.java.lang.StringgetTitle()Returns the title of the panel.booleangetValidatePassword()Whether or not to validate the password against the list of valid password.voidsetAllowBlankInput(boolean allowBlank)Whether or not the allow password to be left blank.voidsetConfirmPassword(boolean confirmPassword)Whether the password to be confirmed.voidsetInstructions(java.lang.String instructions)Defines the panel instructions to display.voidsetMatchingIndexResultVar(java.lang.String matchingIndex)Defines the name of the variable where to store the index of the matching password.voidsetPasswordFile(java.lang.String path)The text file which contains the list of valid passwords.voidsetPasswordResultVar(java.lang.String variable)Defines the name of the variable where to store the entered password.voidsetPasswordsList(java.util.Vector<java.lang.String> pl)Set the password list.voidsetPrompt(java.lang.String prompt)Defines the panel's prompt to display.voidsetTitle(java.lang.String title)Defines the title of the panel.voidsetValidatePassword(boolean validatePassword)Whether or not to validate the password against the list of valid password.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setTitle
public void setTitle(java.lang.String title)
Defines the title of the panel. Default is "Enter Password".
-
getTitle
public java.lang.String getTitle()
Returns the title of the panel.
-
setPrompt
public void setPrompt(java.lang.String prompt)
Defines the panel's prompt to display. Default is "Please Enter the Password:".
-
getPrompt
public java.lang.String getPrompt()
Returns the panel's prompt to display.
-
setInstructions
public void setInstructions(java.lang.String instructions)
Defines the panel instructions to display. Default is "This installation requires a password to continue."
-
getInstructions
public java.lang.String getInstructions()
Returns the panel instructions to display.
-
setPasswordResultVar
public void setPasswordResultVar(java.lang.String variable)
Defines the name of the variable where to store the entered password. Default is $USER_SUPPLIED_PASSWORD$.
-
getPasswordResultVar
public java.lang.String getPasswordResultVar()
Returns the name of the variable where to store the entered password.
-
setMatchingIndexResultVar
public void setMatchingIndexResultVar(java.lang.String matchingIndex)
Defines the name of the variable where to store the index of the matching password. The panels matches the password with the list of passwords defined in the passwordFile property. The index starts from 1.
-
getMatchingIndexResultVar
public java.lang.String getMatchingIndexResultVar()
Returns the name of the variable where to store the index of the matching password.
-
setPasswordsList
public void setPasswordsList(java.util.Vector<java.lang.String> pl)
Set the password list.
-
getPasswordsList
public java.util.Vector<java.lang.String> getPasswordsList()
Get the password list.
-
setAllowBlankInput
public void setAllowBlankInput(boolean allowBlank)
Whether or not the allow password to be left blank.
-
getAllowBlankInput
public boolean getAllowBlankInput()
Whether or not the allow password to be left blank.
-
getValidatePassword
public boolean getValidatePassword()
Whether or not to validate the password against the list of valid password.- See Also:
setPasswordFile(java.lang.String)
-
setValidatePassword
public void setValidatePassword(boolean validatePassword)
Whether or not to validate the password against the list of valid password.
-
setConfirmPassword
public void setConfirmPassword(boolean confirmPassword)
Whether the password to be confirmed.
-
getConfirmPassword
public boolean getConfirmPassword()
Whether the password to be confirmed.
-
setPasswordFile
public void setPasswordFile(java.lang.String path)
The text file which contains the list of valid passwords. The passwords should be separated by new line ( ).
-
getPasswordFile
public java.lang.String getPasswordFile()
The text file which contains the list of valid passwords. The passwords should be separated by new line ( ).
-
-