org.apache.directory.api.ldap.extras.controls.ppolicy
Class PasswordPolicyResponseImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponseImpl
All Implemented Interfaces:
PasswordPolicyResponse

public class PasswordPolicyResponseImpl
extends Object
implements PasswordPolicyResponse

A PasswordPolicyResponse.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
PasswordPolicyResponseImpl()
           
 
Method Summary
 int getGraceAuthNsRemaining()
          
 PasswordPolicyErrorEnum getPasswordPolicyError()
          
 int getTimeBeforeExpiration()
          
 void setGraceAuthNsRemaining(int graceAuthNsRemaining)
          Sets the number of remaining wrong authentication for this password
 void setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
          Sets the PasswordPolicy error number
 void setTimeBeforeExpiration(int timeBeforeExpiration)
          Set a date of expiration for the password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordPolicyResponseImpl

public PasswordPolicyResponseImpl()
Method Detail

getTimeBeforeExpiration

public int getTimeBeforeExpiration()

Specified by:
getTimeBeforeExpiration in interface PasswordPolicyResponse
Returns:
The time before expiration of the password

setTimeBeforeExpiration

public void setTimeBeforeExpiration(int timeBeforeExpiration)
Set a date of expiration for the password

Specified by:
setTimeBeforeExpiration in interface PasswordPolicyResponse
Parameters:
timeBeforeExpiration - The time before the password will expire

getGraceAuthNsRemaining

public int getGraceAuthNsRemaining()

Specified by:
getGraceAuthNsRemaining in interface PasswordPolicyResponse
Returns:
The number of possible attempts on the password before it's locked

setGraceAuthNsRemaining

public void setGraceAuthNsRemaining(int graceAuthNsRemaining)
Sets the number of remaining wrong authentication for this password

Specified by:
setGraceAuthNsRemaining in interface PasswordPolicyResponse
Parameters:
graceAuthNsRemaining - The number of remaining attempts

getPasswordPolicyError

public PasswordPolicyErrorEnum getPasswordPolicyError()

Specified by:
getPasswordPolicyError in interface PasswordPolicyResponse
Returns:
The PasswordPolicy error number

setPasswordPolicyError

public void setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
Sets the PasswordPolicy error number

Specified by:
setPasswordPolicyError in interface PasswordPolicyResponse
Parameters:
ppolicyError - The error number


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.