Class AuthenticationHandlerResponse

java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.AbstractResult
org.ldaptive.auth.AuthenticationHandlerResponse
All Implemented Interfaces:
Message, Result

public final class AuthenticationHandlerResponse extends AbstractResult
Response object for authentication handlers.
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • authenticationResultCode

      private AuthenticationResultCode authenticationResultCode
      Authentication result code.
    • connection

      private Connection connection
      Connection that authentication occurred on.
  • Constructor Details

    • AuthenticationHandlerResponse

      private AuthenticationHandlerResponse()
      Default constructor.
    • AuthenticationHandlerResponse

      public AuthenticationHandlerResponse(T result, AuthenticationResultCode code, Connection conn)
      Creates a new authentication response.
      Type Parameters:
      T - type of LDAP result
      Parameters:
      result - of the LDAP operation used to produce this response
      code - authentication result code
      conn - connection the authentication occurred on
  • Method Details

    • getAuthenticationResultCode

      public AuthenticationResultCode getAuthenticationResultCode()
      Returns the authentication result code.
      Returns:
      authentication result code
    • getConnection

      public Connection getConnection()
      Returns the connection that authentication occurred on.
      Returns:
      connection
    • isSuccess

      public boolean isSuccess()
      Description copied from interface: Result
      Returns whether the result code in this result is ResultCode.SUCCESS.
      Returns:
      whether this result is success
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractResult
    • hashCode

      public int hashCode()
      Description copied from class: AbstractMessage
      Returns the hash code for this object.
      Specified by:
      hashCode in class AbstractMessage
      Returns:
      hash code
    • toString

      public String toString()
      Overrides:
      toString in class AbstractResult
    • builder

      Creates a builder for this class.
      Returns:
      new builder