Package com.netscape.jndi.ldap.controls
Class LdapPasswordExpiringControl
java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPPasswordExpiringControl
com.netscape.jndi.ldap.controls.LdapPasswordExpiringControl
- All Implemented Interfaces:
Serializable,Cloneable,Control
public class LdapPasswordExpiringControl
extends netscape.ldap.controls.LDAPPasswordExpiringControl
implements 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:
-
Field Summary
FieldsFields inherited from class netscape.ldap.controls.LDAPPasswordExpiringControl
EXPIRINGFields inherited from class netscape.ldap.LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRINGFields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Retrieves the ASN.1 BER encoded value of the LDAP control.intReturn parsed number of seconds before password expiresstatic StringparseResponse(netscape.ldap.LDAPControl[] arg0, String arg1) Methods inherited from class netscape.ldap.controls.LDAPPasswordExpiringControl
getMessage, getSecondsToExpiration, parseResponse, toStringMethods inherited from class netscape.ldap.LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, registerMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.naming.ldap.Control
getID, isCritical
-
Field Details
-
m_msg
-
-
Method Details
-
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:
getEncodedValuein interfaceControl- Returns:
- A possibly null byte array representing the ASN.1 BER encoded value of the LDAP control.
-
parseResponse
-