Package org.ldaptive.auth.ext
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldaptive.auth.AccountState
AccountState.DefaultWarning, AccountState.Error, AccountState.Warning
-
-
Field Summary
Fields Modifier and Type Field Description private PasswordPolicyControl.Error
ppError
password policy specific enum.
-
Constructor Summary
Constructors Constructor Description PasswordPolicyAccountState(ZonedDateTime exp, int remaining)
Creates a new password policy account state.PasswordPolicyAccountState(PasswordPolicyControl.Error error)
Creates a new password policy account state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordPolicyControl.Error
getPasswordPolicyError()
Returns the password policy error for this account state.-
Methods inherited from class org.ldaptive.auth.AccountState
getError, getErrors, getWarning, getWarnings, toString
-
-
-
-
Field Detail
-
ppError
private final PasswordPolicyControl.Error ppError
password policy specific enum.
-
-
Constructor Detail
-
PasswordPolicyAccountState
public PasswordPolicyAccountState(ZonedDateTime exp, int remaining)
Creates a new password policy account state.- Parameters:
exp
- account expirationremaining
- number of logins available
-
PasswordPolicyAccountState
public PasswordPolicyAccountState(PasswordPolicyControl.Error error)
Creates a new password policy account state.- Parameters:
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
-
-