Class JDAPBindResponse

  • All Implemented Interfaces:
    JDAPProtocolOp

    public class JDAPBindResponse
    extends JDAPResult
    implements JDAPProtocolOp
    This class implements the bind response. This object is sent from the ldap server to the interface.
     BindResponse = [APPLICATION 1] LDAPResult
     
    Note that LDAPv3.0 Bind Response is structured as follows:
     BindResponse ::= [APPLICATION 1] SEQUENCE {
       COMPONENTS OF LDAPResult,
       serverCreds [7] SaslCredentials OPTIONAL
     }
     
    • Field Detail

      • m_credentials

        protected byte[] m_credentials
        Internal variables
    • Constructor Detail

      • JDAPBindResponse

        public JDAPBindResponse​(BERElement element)
                         throws java.io.IOException
        Constructs bind response.
        Parameters:
        element - ber element of bind response
        Throws:
        java.io.IOException
    • Method Detail

      • getCredentials

        public byte[] getCredentials()
        Retrieves Sasl Credentials. LDAPv3 support.
        Returns:
        credentials
      • getType

        public int getType()
        Retrieves the protocol operation type.
        Specified by:
        getType in interface JDAPProtocolOp
        Returns:
        protocol type
      • toString

        public java.lang.String toString()
        Retrieve the string representation.
        Specified by:
        toString in interface JDAPProtocolOp
        Overrides:
        toString in class JDAPResult
        Returns:
        string representation