Package org.ldaptive.auth
Class AuthenticationHandlerResponse
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.AbstractResult
org.ldaptive.auth.AuthenticationHandlerResponse
Response object for authentication handlers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classNested classes/interfaces inherited from class org.ldaptive.AbstractResult
AbstractResult.AbstractBuilder<B,T extends AbstractResult>, AbstractResult.DiagnosticMessageHandler, AbstractResult.MatchedDNHandler, AbstractResult.ReferralHandler, AbstractResult.ResultCodeHandler Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AuthenticationResultCodeAuthentication result code.private ConnectionConnection that authentication occurred on.private static final inthash code seed. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefault constructor.AuthenticationHandlerResponse(T result, AuthenticationResultCode code, Connection conn) Creates a new authentication response. -
Method Summary
Modifier and TypeMethodDescription(package private) static AuthenticationHandlerResponse.Builderbuilder()Creates a builder for this class.booleanReturns the authentication result code.Returns the connection that authentication occurred on.inthashCode()Returns the hash code for this object.booleanReturns whether the result code in this result isResultCode.SUCCESS.toString()Methods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, equalsResult, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCodeMethods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, equalsMessage, getControls, getMessageID, setMessageIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageIDMethods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
authenticationResultCode
Authentication result code. -
connection
Connection that authentication occurred on.
-
-
Constructor Details
-
AuthenticationHandlerResponse
private AuthenticationHandlerResponse()Default constructor. -
AuthenticationHandlerResponse
Creates a new authentication response.- Type Parameters:
T- type of LDAP result- Parameters:
result- of the LDAP operation used to produce this responsecode- authentication result codeconn- connection the authentication occurred on
-
-
Method Details
-
getAuthenticationResultCode
Returns the authentication result code.- Returns:
- authentication result code
-
getConnection
Returns the connection that authentication occurred on.- Returns:
- connection
-
isSuccess
public boolean isSuccess()Description copied from interface:ResultReturns whether the result code in this result isResultCode.SUCCESS.- Returns:
- whether this result is success
-
equals
- Overrides:
equalsin classAbstractResult
-
hashCode
public int hashCode()Description copied from class:AbstractMessageReturns the hash code for this object.- Specified by:
hashCodein classAbstractMessage- Returns:
- hash code
-
toString
- Overrides:
toStringin classAbstractResult
-
builder
Creates a builder for this class.- Returns:
- new builder
-