Class PasswordExpiredResponseImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.extras.controls.passwordExpired.PasswordExpiredResponseImpl
-
- All Implemented Interfaces:
PasswordExpiredResponse
,Control
public class PasswordExpiredResponseImpl extends AbstractControl implements PasswordExpiredResponse
A PasswordExpiredResponse control implementation.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.passwordExpired.PasswordExpiredResponse
OID
-
-
Constructor Summary
Constructors Constructor Description PasswordExpiredResponseImpl()
Creates a new instance of a PasswordExpired Control without any response data associated with it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getTimeBeforeExpiration()
Returns the time in seconds before the password expires.String
toString()
Return a String representing this PasswordExpiredControl.-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
equals, getOid, hashCode, isCritical, setCritical
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
PasswordExpiredResponseImpl
public PasswordExpiredResponseImpl()
Creates a new instance of a PasswordExpired Control without any response data associated with it.
-
-
Method Detail
-
getTimeBeforeExpiration
public int getTimeBeforeExpiration()
Returns the time in seconds before the password expires. Default to 0- Specified by:
getTimeBeforeExpiration
in interfacePasswordExpiredResponse
- Returns:
- The time before expiration of the password
-
toString
public String toString()
Return a String representing this PasswordExpiredControl.- Overrides:
toString
in classAbstractControl
-
-