|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetscape.ldap.LDAPControl
netscape.ldap.controls.LDAPPasswordExpiredControl
public class 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.
LDAPControl
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
EXPIRED
|
protected java.lang.String |
m_msg
|
Fields inherited from class netscape.ldap.LDAPControl |
---|
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING |
Constructor Summary | |
---|---|
LDAPPasswordExpiredControl(java.lang.String oid,
boolean critical,
byte[] value)
Contructs an LDAPPasswordExpiredControl object. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Gets the message returned by the server with this control. |
static java.lang.String |
parseResponse(LDAPControl[] controls)
Deprecated. LDAPPasswordExpiredControl controls are now automatically instantiated. |
static java.lang.String |
parseResponse(LDAPControl[] controls,
java.lang.String type)
Parses a response control sent by the server and retrieves a string. |
java.lang.String |
toString()
Return a string representation of the control for debugging |
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 |
Field Detail |
---|
public static final java.lang.String EXPIRED
protected java.lang.String m_msg
Constructor Detail |
---|
public LDAPPasswordExpiredControl(java.lang.String oid, boolean critical, byte[] value) throws LDAPException
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
.LDAPControl.register(java.lang.String, java.lang.Class)
Method Detail |
---|
public static java.lang.String parseResponse(LDAPControl[] controls)
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.
LDAPConnection.getResponseControls()
public java.lang.String getMessage()
public java.lang.String toString()
LDAPControl
toString
in class LDAPControl
public static java.lang.String parseResponse(LDAPControl[] controls, java.lang.String type)
You can get the controls returned by the server by using the
getResponseControls
method of the
LDAPConnection
class.
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.type
- the OID of the control to look for
LDAPConnection.getResponseControls()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |