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

    Constructors
    Constructor
    Description
    Creates a new instance of a PasswordExpired Control without any response data associated with it.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the time in seconds before the password expires.
    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 class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getTimeBeforeExpiration in interface PasswordExpiredResponse
      Returns:
      The time before expiration of the password
    • toString

      public String toString()
      Return a String representing this PasswordExpiredControl.
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControl