org.apache.directory.api.ldap.extras.controls.ppolicy
Interface PasswordPolicyResponse

All Known Implementing Classes:
PasswordPolicyResponseImpl

public interface PasswordPolicyResponse

The PasswordPolciy reponse. It contains information about the error if we had one when injecting a bad passsword into the server.

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

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
 

Method Detail

getTimeBeforeExpiration

int getTimeBeforeExpiration()
Returns:
The time before expiration of the password

setTimeBeforeExpiration

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

Parameters:
timeBeforeExpiration - The time before the password will expire

getGraceAuthNsRemaining

int getGraceAuthNsRemaining()
Returns:
The number of possible attempts on the password before it's locked

setGraceAuthNsRemaining

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

Parameters:
graceAuthNsRemaining - The number of remaining attempts

getPasswordPolicyError

PasswordPolicyErrorEnum getPasswordPolicyError()
Returns:
The PasswordPolicy error number

setPasswordPolicyError

void setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
Sets the PasswordPolicy error number

Parameters:
ppolicyError - The error number


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