Package netscape.ldap.controls
Class LDAPPasswordExpiredControl
java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPStringControl
netscape.ldap.controls.LDAPPasswordExpiredControl
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
LdapPasswordExpiredControl
Represents an LDAP v3 server control that may be returned if a
password has expired, and password policy is enabled on the server.
The OID for this control is 2.16.840.1.113730.3.4.4.
- Version:
- 1.0
- See Also:
-
Field Summary
FieldsFields inherited from class netscape.ldap.controls.LDAPStringControl
m_msgFields inherited from class netscape.ldap.LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING -
Constructor Summary
ConstructorsConstructorDescriptionLDAPPasswordExpiredControl(String oid, boolean critical, byte[] value) Contructs anLDAPPasswordExpiredControlobject. -
Method Summary
Modifier and TypeMethodDescriptionGets the message returned by the server with this control.static StringparseResponse(LDAPControl[] controls) Deprecated.LDAPPasswordExpiredControl controls are now automatically instantiated.toString()Return a string representation of the control for debuggingMethods inherited from class netscape.ldap.controls.LDAPStringControl
parseResponseMethods inherited from class netscape.ldap.LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, register
-
Field Details
-
EXPIRED
- See Also:
-
-
Constructor Details
-
LDAPPasswordExpiredControl
Contructs anLDAPPasswordExpiredControlobject. This constructor is used byLDAPControl.registerto instantiate password expired controls.To retrieve the message from the server, call
getMessage.- Parameters:
oid- this parameter must be equal toLDAPPasswordExpiredControl.EXPIREDor anLDAPExceptionis throwncritical-trueif this control is criticalvalue- the value associated with this control- Throws:
LDAPException- If oid is notLDAPPasswordExpiredControl.EXPIRED.- See Also:
-
-
Method Details
-
parseResponse
Deprecated.LDAPPasswordExpiredControl controls are now automatically instantiated.- Parameters:
controls- an array ofLDAPControlobjects, representing the controls returned by the server after a search. To get these controls, use thegetResponseControlsmethod of theLDAPConnectionclass.- Returns:
- an error message string, or null if none is in the control.
- See Also:
-
getMessage
Gets the message returned by the server with this control.- Returns:
- the message returned by the server.
-
toString
Description copied from class:LDAPControlReturn a string representation of the control for debugging- Overrides:
toStringin classLDAPControl- Returns:
- a string representation of the control.
-