Class PasswordPolicyAccountState


  • public class PasswordPolicyAccountState
    extends AccountState
    Represents the state of an account as described by a password policy control. The PasswordPolicyControl supports a single warning and/or a single error.
    • Constructor Detail

      • PasswordPolicyAccountState

        public PasswordPolicyAccountState​(ZonedDateTime exp,
                                          int remaining)
        Creates a new password policy account state with a timeBeforeExpiration warning.
        Parameters:
        exp - account expiration
        remaining - number of logins available
      • PasswordPolicyAccountState

        public PasswordPolicyAccountState​(ZonedDateTime exp)
        Creates a new password policy account state.
        Parameters:
        exp - account expiration
      • PasswordPolicyAccountState

        public PasswordPolicyAccountState​(int remaining)
        Creates a new password policy account state with a graceAuthNsRemaining warning.
        Parameters:
        remaining - number of logins available
      • PasswordPolicyAccountState

        public PasswordPolicyAccountState​(PasswordPolicyControl.Error error)
        Creates a new password policy account state with an error.
        Parameters:
        error - containing password policy error details
      • PasswordPolicyAccountState

        public PasswordPolicyAccountState​(ZonedDateTime exp,
                                          PasswordPolicyControl.Error error)
        Creates a new password policy account state with both a timeBeforeExpiration warning and an error.
        Parameters:
        exp - account expiration
        error - containing password policy error details
      • PasswordPolicyAccountState

        public PasswordPolicyAccountState​(int remaining,
                                          PasswordPolicyControl.Error error)
        Creates a new password policy account state with both a graceAuthNsRemaining warning and an error.
        Parameters:
        remaining - number of logins available
        error - containing password policy error details
    • Method Detail

      • getPasswordPolicyError

        public PasswordPolicyControl.Error getPasswordPolicyError()
        Returns the password policy error for this account state.
        Returns:
        password policy error