Class LdapProxiedAuthControl
java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPProxiedAuthControl
com.netscape.jndi.ldap.controls.LdapProxiedAuthControl
- All Implemented Interfaces:
Serializable, Cloneable, Control
Represents an LDAP v3 server control that specifies that you want
the server to use the specified DN's identity for this operation.
(The OID for this control is 2.16.840.1.113730.3.4.12.) *
- See Also:
-
Field Summary
Fields inherited from class LDAPProxiedAuthControl
PROXIEDAUTHREQUESTFields inherited from class LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRINGFields inherited from interface Control
CRITICAL, NONCRITICAL -
Constructor Summary
ConstructorsConstructorDescriptionLdapProxiedAuthControl(String dn, boolean critical) Constructs anLdapProxiedAuthControlobject with a DN to use as identity. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Retrieves the ASN.1 BER encoded value of the LDAP control.Methods inherited from class LDAPProxiedAuthControl
toStringMethods inherited from class LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, registerMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Control
getID, isCritical
-
Constructor Details
-
LdapProxiedAuthControl
Constructs anLdapProxiedAuthControlobject with a DN to use as identity.- Parameters:
dn- DN to use as identity for execution of a request.critical-trueif the LDAP operation should be discarded when the server does not support this control (in other words, this control is critical to the LDAP operation).
-
-
Method Details
-
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.
-