org.ldaptive.auth.ext
Class PasswordPolicyAccountState

java.lang.Object
  extended by org.ldaptive.auth.AccountState
      extended by org.ldaptive.auth.ext.PasswordPolicyAccountState

public class PasswordPolicyAccountState
extends AccountState

Represents the state of an account as described by a password policy control.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ldaptive.auth.AccountState
AccountState.DefaultWarning, AccountState.Error, AccountState.Warning
 
Constructor Summary
PasswordPolicyAccountState(Calendar exp, int remaining)
          Creates a new password policy account state.
PasswordPolicyAccountState(PasswordPolicyControl.Error error)
          Creates a new password policy account state.
 
Method Summary
 PasswordPolicyControl.Error getPasswordPolicyError()
          Returns the password policy error for this account state.
 
Methods inherited from class org.ldaptive.auth.AccountState
getError, getErrors, getWarning, getWarnings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PasswordPolicyAccountState

public PasswordPolicyAccountState(Calendar exp,
                                  int remaining)
Creates a new password policy account state.

Parameters:
exp - account expiration
remaining - number of logins available

PasswordPolicyAccountState

public PasswordPolicyAccountState(PasswordPolicyControl.Error error)
Creates a new password policy account state.

Parameters:
error - containing password policy error details
Method Detail

getPasswordPolicyError

public PasswordPolicyControl.Error getPasswordPolicyError()
Returns the password policy error for this account state.

Returns:
password policy error


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