Class PasswordPolicyAccountState

java.lang.Object
org.ldaptive.auth.AccountState
org.ldaptive.auth.ext.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.
  • Field Details

  • Constructor Details

    • PasswordPolicyAccountState

      public PasswordPolicyAccountState(ZonedDateTime exp)
      Creates a new password policy account state with a timeBeforeExpiration warning.
      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 Details

    • getPasswordPolicyError

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