Class LDAPBindException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SASLBindInProgressException

This class defines an exception that can be thrown if the server sends a bind response with a result code other than ResultCode.SUCCESS, which indicates that the bind operation did not complete successfully. This may be used to obtain access to any server SASL credentials contained in the non-successful bind result.
See Also:
  • Constructor Details

    • LDAPBindException

      Creates a new LDAP bind exception from the provided bind result.
      Parameters:
      bindResult - The bind result to use to create this exception.
  • Method Details

    • toLDAPResult

      Creates a new LDAPResult object from this exception.
      Overrides:
      toLDAPResult in class LDAPException
      Returns:
      The LDAPResult object created from this exception.
    • getBindResult

      Retrieves the bind result that was returned by the server.
      Returns:
      The bind result that was returned by the server.
    • getServerSASLCredentials

      Retrieves the server SASL credentials included in the bind result, if any.
      Returns:
      The server SASL credentials included in the bind result, or null if the bind result did not include any server SASL credentials.