Package org.ldaptive.auth.ext
Class PasswordExpirationAccountState
- java.lang.Object
-
- org.ldaptive.auth.AccountState
-
- org.ldaptive.auth.ext.PasswordExpirationAccountState
-
public class PasswordExpirationAccountState extends AccountState
Represents the state of an account in a directory that implements: http://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00. Note that the warning returned by this implementation always returns -1 for logins remaining as this specification doesn't include that feature.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PasswordExpirationAccountState.Error
Enum to define password expiration error.-
Nested classes/interfaces inherited from class org.ldaptive.auth.AccountState
AccountState.DefaultWarning, AccountState.Warning
-
-
Field Summary
Fields Modifier and Type Field Description private PasswordExpirationAccountState.Error
nError
error enum.
-
Constructor Summary
Constructors Constructor Description PasswordExpirationAccountState(ZonedDateTime exp)
Creates a new password expiration account state.PasswordExpirationAccountState(PasswordExpirationAccountState.Error error)
Creates a new password expiration account state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordExpirationAccountState.Error
getPasswordExpirationError()
Returns the password expiration error for this account state.-
Methods inherited from class org.ldaptive.auth.AccountState
getError, getErrors, getWarning, getWarnings, toString
-
-
-
-
Field Detail
-
nError
private final PasswordExpirationAccountState.Error nError
error enum.
-
-
Constructor Detail
-
PasswordExpirationAccountState
public PasswordExpirationAccountState(ZonedDateTime exp)
Creates a new password expiration account state.- Parameters:
exp
- account expiration
-
PasswordExpirationAccountState
public PasswordExpirationAccountState(PasswordExpirationAccountState.Error error)
Creates a new password expiration account state.- Parameters:
error
- containing authentication failure details
-
-
Method Detail
-
getPasswordExpirationError
public PasswordExpirationAccountState.Error getPasswordExpirationError()
Returns the password expiration error for this account state.- Returns:
- password expiration error
-
-