Class JDAPBindResponse

java.lang.Object
netscape.ldap.client.opers.JDAPResult
netscape.ldap.client.opers.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 Details

    • m_credentials

      protected byte[] m_credentials
      Internal variables
  • Constructor Details

    • JDAPBindResponse

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

    • 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 String toString()
      Retrieve the string representation.
      Specified by:
      toString in interface JDAPProtocolOp
      Overrides:
      toString in class JDAPResult
      Returns:
      string representation