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.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
AuthenticationPolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
public boolean isPasswordCompliant()
isPasswordCompliant
in interface AuthenticationPolicyCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- thrown if a password policy violation is detected.public void setAccountPolicy(java.lang.String strDefinedAccountPolicy)
setAccountPolicy
in interface AuthenticationPolicyCmd
strDefinedAccountPolicy
- The account policy.public void setErrorTask(java.lang.String strErrorTask)
setErrorTask
in interface AuthenticationPolicyCmd
strErrorTask
- The name of the new error view task.public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface AuthenticationPolicyCmd
strLogonId
- The login ID.public void setPassword(java.lang.String strPassword)
setPassword
in interface AuthenticationPolicyCmd
strPassword
- The password.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException