Package org.ldaptive.auth.ext
Class PasswordPolicyAccountState
java.lang.Object
org.ldaptive.auth.AccountState
org.ldaptive.auth.ext.PasswordPolicyAccountState
Represents the state of an account as described by a password policy control. The
PasswordPolicyControl
supports a single warning and/or a single error.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ldaptive.auth.AccountState
AccountState.DefaultWarning, AccountState.Error, AccountState.Warning -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PasswordPolicyControl.Errorpassword policy specific enum. -
Constructor Summary
ConstructorsConstructorDescriptionPasswordPolicyAccountState(int remaining) Creates a new password policy account state with a graceAuthNsRemaining warning.PasswordPolicyAccountState(int remaining, PasswordPolicyControl.Error error) Creates a new password policy account state with both a graceAuthNsRemaining warning and an error.Creates a new password policy account state with a timeBeforeExpiration warning.Creates a new password policy account state with both a timeBeforeExpiration warning and an error.Creates a new password policy account state with an error. -
Method Summary
Modifier and TypeMethodDescriptionReturns the password policy error for this account state.Methods inherited from class org.ldaptive.auth.AccountState
getError, getErrors, getWarning, getWarnings, toString
-
Field Details
-
ppError
password policy specific enum.
-
-
Constructor Details
-
PasswordPolicyAccountState
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
Creates a new password policy account state with an error.- Parameters:
error- containing password policy error details
-
PasswordPolicyAccountState
Creates a new password policy account state with both a timeBeforeExpiration warning and an error.- Parameters:
exp- account expirationerror- containing password policy error details
-
PasswordPolicyAccountState
Creates a new password policy account state with both a graceAuthNsRemaining warning and an error.- Parameters:
remaining- number of logins availableerror- containing password policy error details
-
-
Method Details
-
getPasswordPolicyError
Returns the password policy error for this account state.- Returns:
- password policy error
-