org.ldaptive.auth
Class AccountState

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

public class AccountState
extends Object

Represents the state of an LDAP account based account policies for that LDAP. Note that only warning(s) or error(s) may be set, not both.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Nested Class Summary
static class AccountState.DefaultWarning
          Default warning implementation.
static interface AccountState.Error
          Contains error information for an account state.
static interface AccountState.Warning
          Contains warning information for an account state.
 
Constructor Summary
AccountState(AccountState.Error... errors)
          Creates a new account state.
AccountState(AccountState.Warning... warnings)
          Creates a new account state.
 
Method Summary
 AccountState.Error getError()
          Returns the first account state error or null if no errors exist.
 AccountState.Error[] getErrors()
          Returns the account state errors.
 AccountState.Warning getWarning()
          Returns the first account state warning or null if no warnings exist.
 AccountState.Warning[] getWarnings()
          Returns the account state warnings.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.