com.netscape.jndi.ldap.controls
Class LdapPasswordExpiringControl

java.lang.Object
  extended by netscape.ldap.LDAPControl
      extended by netscape.ldap.controls.LDAPStringControl
          extended by netscape.ldap.controls.LDAPPasswordExpiringControl
              extended by com.netscape.jndi.ldap.controls.LdapPasswordExpiringControl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.naming.ldap.Control

public class LdapPasswordExpiringControl
extends LDAPPasswordExpiringControl
implements javax.naming.ldap.Control

Represents an LDAP v3 server control that may be returned if a password is about to expire, and password policy is enabled on the server. The OID for this control is 2.16.840.1.113730.3.4.5.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class netscape.ldap.controls.LDAPPasswordExpiringControl
EXPIRING
 
Fields inherited from class netscape.ldap.controls.LDAPStringControl
m_msg
 
Fields inherited from class netscape.ldap.LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
LdapPasswordExpiringControl(boolean critical, byte[] value)
          This constractor is used by the NetscapeControlFactory
 
Method Summary
 byte[] getEncodedValue()
          Retrieves the ASN.1 BER encoded value of the LDAP control.
 int getSecondsToExipre()
          Return parsed number of seconds before password expires
 
Methods inherited from class netscape.ldap.controls.LDAPPasswordExpiringControl
getMessage, getSecondsToExpiration, parseResponse, toString
 
Methods inherited from class netscape.ldap.controls.LDAPStringControl
parseResponse
 
Methods inherited from class netscape.ldap.LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, register
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.naming.ldap.Control
getID, isCritical
 

Constructor Detail

LdapPasswordExpiringControl

LdapPasswordExpiringControl(boolean critical,
                            byte[] value)
                      throws java.lang.Exception
This constractor is used by the NetscapeControlFactory

Throws:
java.lang.Exception
Method Detail

getSecondsToExipre

public int getSecondsToExipre()
Return parsed number of seconds before password expires

Returns:
number of seconds before password expires

getEncodedValue

public byte[] getEncodedValue()
Retrieves the ASN.1 BER encoded value of the LDAP control. Null is returned if the value is absent.

Specified by:
getEncodedValue in interface javax.naming.ldap.Control
Returns:
A possibly null byte array representing the ASN.1 BER encoded value of the LDAP control.