public class AuthenticationPolicyCmdImpl extends TaskCommandImpl implements AuthenticationPolicyCmd
Use this task command to enforce policies such as minimum password length. This task command is called by every command that performs verification or update of user credentials.
Before executing this task command, the methods listed below must be invoked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright statement
|
static java.lang.String | ERRTASK_NAME
Error task name.
|
Constructor and Description |
---|
AuthenticationPolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | analyzePassword()
This method loads the password rules which are used to validate the user's new password.
|
protected java.lang.String | getLogonId()
This method retrieves the logon ID of the current user.
|
protected java.lang.String | getPassword()
This method retrieves the password to use for verification against the password policy.
|
boolean | isPasswordCompliant()
After this task is executed, this method returns whether the user had a password policy and if the supplied password complies with that policy.
|
protected boolean | isPreviousPasswordDifferent()
This method determines whether the password supplied matches a configurable number of user's previous passwords.
|
protected boolean | isUserIDDissimilar()
This method determines whether the password supplied matches the current user's logonID.
|
protected boolean | isValidConsecutiveCharacters()
This method determines whether the password supplied complies with the maximum number of consecutive characters allowed as specified by the password policy for this user.
|
protected boolean | isValidMaximumCharacters()
This method determines whether the password supplied complies with the maximum instances of a character requirement as specified by the password policy for this user.
|
protected boolean | isValidMinimumDigits()
This method determines whether the password supplied complies with the minimum number of digit requirement as specified by the password policy for this user.
|
protected boolean | isValidMinimumLength()
This method determines whether the password supplied complies with the minimum password length requirement as specified by the password policy for this user.
|
protected boolean | isValidMinimumLetters()
This method determines whether the password supplied has the minimum of letters as specified by the password policy for this user.
|
protected boolean | loadUserPasswordPolicy()
This method loads the password rules of the user.
|
void | performExecute()
This command fetches the password policies and delegates to the validatePasswordCompliance() method to determine if the password specified satisfies the policies.
|
void | setAccountPolicy(java.lang.String strDefinedAccountPolicy)
This method sets the account policy used to check this password.
|
void | setErrorTask(java.lang.String strErrorTask)
This function allows for the default error view task of the command to be overwritten.
|
void | setLogonId(java.lang.String strLogonId)
This method sets the logon ID under which the current user wishes to logon.
|
void | setPassword(java.lang.String strPassword)
This method sets the password to use for authentication with the new logon ID.
|
void | validateParameters()
This method validates parameters by ensuring that the logonID and password specified are both non-zero length strings.
|
protected void | validatePasswordCompliance()
This method checks that the password complies with the rules defined by the authentication policy for this user.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
protected void analyzePassword()
protected java.lang.String getLogonId()
protected java.lang.String getPassword()
public boolean isPasswordCompliant()
protected boolean isPreviousPasswordDifferent()
protected boolean isUserIDDissimilar()
protected boolean isValidConsecutiveCharacters()
protected boolean isValidMaximumCharacters()
protected boolean isValidMinimumDigits()
protected boolean isValidMinimumLength()
protected boolean isValidMinimumLetters()
protected boolean loadUserPasswordPolicy() throws ECException
public void performExecute() throws ECException
public void setAccountPolicy(java.lang.String strDefinedAccountPolicy)
public void setErrorTask(java.lang.String strErrorTask)
public void setLogonId(java.lang.String strLogonId)
public void setPassword(java.lang.String strPassword)
public void validateParameters() throws ECException
protected void validatePasswordCompliance() throws ECApplicationException