Class AccountState

java.lang.Object
org.ldaptive.auth.AccountState
Direct Known Subclasses:
ActiveDirectoryAccountState, EDirectoryAccountState, FreeIPAAccountState, PasswordExpirationAccountState, PasswordPolicyAccountState

public class AccountState extends Object
Represents the state of an LDAP account based on account policies for that LDAP.
  • Field Details

  • Constructor Details

    • AccountState

      public AccountState(AccountState.Warning warning, AccountState.Error error)
      Creates a new account state.
      Parameters:
      warning - associated with the account
      error - associated with the account
    • AccountState

      public AccountState(AccountState.Warning[] warnings, AccountState.Error[] errors)
      Creates a new account state.
      Parameters:
      warnings - associated with the account
      errors - associated with the account
    • AccountState

      public AccountState(AccountState.Warning... warnings)
      Creates a new account state.
      Parameters:
      warnings - associated with the account
    • AccountState

      public AccountState(AccountState.Error... errors)
      Creates a new account state.
      Parameters:
      errors - associated with the account
  • Method Details

    • getWarnings

      public AccountState.Warning[] getWarnings()
      Returns the account state warnings.
      Returns:
      account state warnings
    • getWarning

      public AccountState.Warning getWarning()
      Returns the first account state warning or null if no warnings exist.
      Returns:
      first account state warning
    • getErrors

      public AccountState.Error[] getErrors()
      Returns the account state errors.
      Returns:
      account state errors
    • getError

      public AccountState.Error getError()
      Returns the first account state error or null if no errors exist.
      Returns:
      first account state error
    • toString

      public String toString()
      Overrides:
      toString in class Object