|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.security.commands.AuthenticationPolicyCmdImpl
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 a user credentials.
Before executing this task command, the methods listed below must be invoked.
setLogonId setPassword
Field Summary | |
static java.lang.String |
ERRTASK_NAME
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands.AuthenticationPolicyCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Constructor Summary | |
AuthenticationPolicyCmdImpl()
|
Method Summary | |
protected void |
analyzePassword()
Loads the password rules which will be used to validate the user's new password. |
protected java.lang.String |
getLogonId()
Retrieves the logon ID of the current user. |
protected java.lang.String |
getPassword()
Retrieves the password to be used for verification against the password policy. |
boolean |
isPasswordCompliant()
After this task is executed, you can call this function to determine whether the user had a password policy and if the supplied password complies with that policy. |
protected boolean |
isPreviousPasswordDifferent()
Determines whether the password supplied matches the user's previous password. |
protected boolean |
isUserIDDissimilar()
Determines whether the password supplied matches the current user's logonID. |
protected boolean |
isValidConsecutiveCharacters()
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()
Determines whether the password supplied complies with the minimum number of digits requirements as specified by the password policy for this user. |
protected boolean |
isValidMinimumDigits()
Determines whether the password supplied complies with the minimum number of digits requirements as specified by the password policy for this user. |
protected boolean |
isValidMinimumLength()
Determines whether the password supplied complies with the minimum password length requirements as specified by the password policy for this user. |
protected boolean |
isValidMinimumLetters()
Determines whether the password supplied has the minimum of letters as specified by the password policy for this user. |
protected boolean |
loadUserPasswordPolicy()
Loads the password rules which will be used to check the user's new password. |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
setAccountPolicy(java.lang.String strDefinedAccountPolicy)
Sets the account policy to be 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)
Sets the logon ID under which the current user wishes to logon. |
void |
setPassword(java.lang.String strPassword)
Sets the password to be used for authentication with the new logon ID. |
void |
validateParameters()
Performs server side parameter checking. |
protected void |
validatePasswordCompliance()
Checks that the Password complies with the rules defined by the authentication policy for this user. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static java.lang.String ERRTASK_NAME
Constructor Detail |
public AuthenticationPolicyCmdImpl()
Method Detail |
protected void analyzePassword()
protected java.lang.String getLogonId()
protected java.lang.String getPassword()
public boolean isPasswordCompliant()
isPasswordCompliant
in interface AuthenticationPolicyCmd
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
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setAccountPolicy(java.lang.String strDefinedAccountPolicy)
AuthenticationPolicyCmd
setAccountPolicy
in interface AuthenticationPolicyCmd
com.ibm.commerce.security.commands.AuthenticationPolicyCmd
strDefinedAccountPolicy
- The account policy.public void setErrorTask(java.lang.String strErrorTask)
AuthenticationPolicyCmd
setErrorTask
in interface AuthenticationPolicyCmd
com.ibm.commerce.security.commands.AuthenticationPolicyCmd
strErrorTask
- The name of the new error view task.public void setLogonId(java.lang.String strLogonId)
AuthenticationPolicyCmd
setLogonId
in interface AuthenticationPolicyCmd
com.ibm.commerce.security.commands.AuthenticationPolicyCmd
strLogonID
- The login ID.public void setPassword(java.lang.String strPassword)
AuthenticationPolicyCmd
setPassword
in interface AuthenticationPolicyCmd
com.ibm.commerce.security.commands.AuthenticationPolicyCmd
strPassword
- The password.public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
- protected void validatePasswordCompliance() throws ECApplicationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |