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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefault warning implementation.static interfaceContains error information for an account state.static interfaceContains 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.AccountState(AccountState.Warning[] warnings, AccountState.Error[] errors) Creates a new account state.AccountState(AccountState.Warning warning, AccountState.Error error) Creates a new account state. -
Method Summary
-
Field Details
-
accountWarnings
account warning. -
accountErrors
account error.
-
-
Constructor Details
-
AccountState
Creates a new account state.- Parameters:
warning- associated with the accounterror- associated with the account
-
AccountState
Creates a new account state.- Parameters:
warnings- associated with the accounterrors- associated with the account
-
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
-