Class LdapProxiedAuthControl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.naming.ldap.Control

    public class LdapProxiedAuthControl
    extends netscape.ldap.controls.LDAPProxiedAuthControl
    implements javax.naming.ldap.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:
    Serialized Form
    • Field Summary

      • Fields inherited from class netscape.ldap.controls.LDAPProxiedAuthControl

        PROXIEDAUTHREQUEST
      • Fields inherited from class netscape.ldap.LDAPControl

        m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING
      • Fields inherited from interface javax.naming.ldap.Control

        CRITICAL, NONCRITICAL
    • Constructor Summary

      Constructors 
      Constructor Description
      LdapProxiedAuthControl​(java.lang.String dn, boolean critical)
      Constructs an LdapProxiedAuthControl object with a DN to use as identity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getEncodedValue()
      Retrieves the ASN.1 BER encoded value of the LDAP control.
      • Methods inherited from class netscape.ldap.controls.LDAPProxiedAuthControl

        toString
      • 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
      • Methods inherited from interface javax.naming.ldap.Control

        getID, isCritical
    • Constructor Detail

      • LdapProxiedAuthControl

        public LdapProxiedAuthControl​(java.lang.String dn,
                                      boolean critical)
        Constructs an LdapProxiedAuthControl object with a DN to use as identity.
        Parameters:
        dn - DN to use as identity for execution of a request.
        critical - true if 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 Detail

      • 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:
        getEncodedValue in interface javax.naming.ldap.Control
        Returns:
        A possibly null byte array representing the ASN.1 BER encoded value of the LDAP control.