Package org.ldaptive.auth
Class AccountState
java.lang.Object
org.ldaptive.auth.AccountState
- Direct Known Subclasses:
ActiveDirectoryAccountState
,EDirectoryAccountState
,FreeIPAAccountState
,PasswordExpirationAccountState
,PasswordPolicyAccountState
Represents the state of an LDAP account based on account policies for that LDAP. Note that only warning(s) or
error(s) may be set, not both.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Default warning implementation.static interface
Contains error information for an account state.static interface
Contains warning information for an account state. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AccountState.Error[]
account error.private final AccountState.Warning[]
account warning. -
Constructor Summary
ConstructorsConstructorDescriptionAccountState
(AccountState.Error... errors) Creates a new account state.AccountState
(AccountState.Warning... warnings) Creates a new account state. -
Method Summary
-
Field Details
-
accountWarnings
account warning. -
accountErrors
account error.
-
-
Constructor Details
-
AccountState
Creates a new account state.- Parameters:
warnings
- associated with the account
-
AccountState
Creates a new account state.- Parameters:
errors
- associated with the account
-
-
Method Details
-
getWarnings
Returns the account state warnings.- Returns:
- account state warnings
-
getWarning
Returns the first account state warning or null if no warnings exist.- Returns:
- first account state warning
-
getErrors
Returns the account state errors.- Returns:
- account state errors
-
getError
Returns the first account state error or null if no errors exist.- Returns:
- first account state error
-
toString
-