Class BindResponseImpl

    • Constructor Detail

      • BindResponseImpl

        public BindResponseImpl()
        Creates a BindResponse as a reply to an BindRequest.
      • BindResponseImpl

        public BindResponseImpl​(int id)
        Creates a BindResponse as a reply to an BindRequest.
        Parameters:
        id - the session unique message id
    • Method Detail

      • getServerSaslCreds

        public byte[] getServerSaslCreds()
        Gets the optional property holding SASL authentication response paramters that are SASL mechanism specific. Will return null if the authentication is simple.
        Specified by:
        getServerSaslCreds in interface BindResponse
        Returns:
        the sasl mech. specific credentials or null of auth. is simple
      • setServerSaslCreds

        public void setServerSaslCreds​(byte[] serverSaslCreds)
        Sets the optional property holding SASL authentication response paramters that are SASL mechanism specific. Leave null if authentication mode is simple.
        Specified by:
        setServerSaslCreds in interface BindResponse
        Parameters:
        serverSaslCreds - the sasl auth. mech. specific credentials
      • equals

        public boolean equals​(Object obj)
        Checks to see if this BindResponse is equal to another BindResponse. The implementation and lockable properties are not factored into the evaluation of equality. Only the messageId, saslCredentials and the LdapResults of this BindResponse PDU and the compared object are taken into account if that object also implements the BindResponse interface.
        Overrides:
        equals in class AbstractResultResponse
        Parameters:
        obj - the object to test for equality with this BindResponse
        Returns:
        true if obj equals this BindResponse false otherwise