netscape.ldap.controls
Class LDAPPasswordExpiredControl
- Cloneable, java.io.Serializable
public class LDAPPasswordExpiredControl
extends netscape.ldap.controls.LDAPStringControl
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.
String | getMessage()- Gets the message returned by the server with this control.
|
static String | parseResponse(LDAPControl[] controls)- LDAPPasswordExpiredControl controls are now automatically
instantiated.
|
String | toString()
|
EXPIRED
public static final String EXPIRED
LDAPPasswordExpiredControl
public LDAPPasswordExpiredControl(String oid,
boolean critical,
byte[] value)
throws LDAPException Contructs an
LDAPPasswordExpiredControl object.
This constructor is used by
LDAPControl.register to
instantiate password expired controls.
To retrieve the message from the server, call
getMessage.
oid - this parameter must be equal to
LDAPPasswordExpiredControl.EXPIRED
or an LDAPException is throwncritical - true if this control is criticalvalue - the value associated with this control
LDAPException - If oid is not
LDAPPasswordExpiredControl.EXPIRED.
getMessage
public String getMessage()
Gets the message returned by the server with this control.
- the message returned by the server.
parseResponse
public static String parseResponse(LDAPControl[] controls)
LDAPPasswordExpiredControl controls are now automatically
instantiated.
controls - an array of LDAPControl objects,
representing the controls returned by the server
after a search. To get these controls, use the
getResponseControls method of the
LDAPConnection class.
- an error message string, or null if none is in the control.