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, org.apache.directory.api.ldap.model.message.Control
public class PasswordExpiredResponseImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements PasswordExpiredResponse
A PasswordExpiredResponse control implementation.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface PasswordExpiredResponse
OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of a PasswordExpired Control without any response data associated with it. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the time in seconds before the password expires.toString()Return a String representing this PasswordExpiredControl.Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
equals, getOid, hashCode, isCritical, setCriticalMethods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
Constructor Details
-
PasswordExpiredResponseImpl
public PasswordExpiredResponseImpl()Creates a new instance of a PasswordExpired Control without any response data associated with it.
-
-
Method Details
-
getTimeBeforeExpiration
public int getTimeBeforeExpiration()Returns the time in seconds before the password expires. Default to 0- Specified by:
getTimeBeforeExpirationin interfacePasswordExpiredResponse- Returns:
- The time before expiration of the password
-
toString
Return a String representing this PasswordExpiredControl.- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl
-