com.ibm.commerce.security.commands

Interface AuthenticationPolicyCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    AuthenticationPolicyCmdImpl


    public interface AuthenticationPolicyCmd
    extends TaskCommand

    This task command is called by every command that verifies or updates user credentials. This command can be used to enforce policies such as minimum password length.

    Before executing this task command, the methods listed below must be invoked.

    • setLogonID
    • setPassword
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The Copyright field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default command implementation class.
        See Also:
        Constant Field Values
    • Method Detail

      • isPasswordCompliant

        boolean isPasswordCompliant()
        After this command task is executed, a boolean result flag is set to indicate if the password complies with the user's password policy. This function returns a boolean flag to indicate if the password complies with the policy.
        Returns:
        True, if authentication was successful.
      • setAccountPolicy

        void setAccountPolicy(java.lang.String strDefinedAccountPolicy)
        This method sets the account policy used to check this password. This overrides the default account policy for the user.
        Parameters:
        strDefinedAccountPolicy - The account policy.
      • setErrorTask

        void setErrorTask(java.lang.String strErrorTask)
        This function allows the default error view task of the command to be overwritten.
        Parameters:
        strErrorTask - The name of the new error view task.
      • setLogonId

        void setLogonId(java.lang.String strLogonId)
        This method sets the logon ID under which the current user wishes to logon.
        Parameters:
        strLogonId - The login ID.
      • setPassword

        void setPassword(java.lang.String strPassword)
        This method sets the password to be used for authentication with the new logon ID.
        Parameters:
        strPassword - The password.