Package org.ldaptive.auth
Class AuthenticationHandlerResponse
- java.lang.Object
 - 
- org.ldaptive.AbstractMessage
 - 
- org.ldaptive.AbstractResult
 - 
- org.ldaptive.auth.AuthenticationHandlerResponse
 
 
 
 
- 
public final class AuthenticationHandlerResponse extends AbstractResult
Response object for authentication handlers. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAuthenticationHandlerResponse.Builder- 
Nested 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
Fields Modifier and Type Field Description private AuthenticationResultCodeauthenticationResultCodeAuthentication result code.private ConnectionconnectionConnection that authentication occurred on.private static intHASH_CODE_SEEDhash code seed.- 
Fields inherited from interface org.ldaptive.Result
ENCODE_CNTRL_CHARS 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description privateAuthenticationHandlerResponse()Default constructor.AuthenticationHandlerResponse(T result, AuthenticationResultCode code, Connection conn)Creates a new authentication response. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static AuthenticationHandlerResponse.Builderbuilder()Creates a builder for this class.booleanequals(Object o)AuthenticationResultCodegetAuthenticationResultCode()ConnectiongetConnection()inthashCode()Returns the hash code for this object.booleanisSuccess()Returns whether the result code in this result isResultCode.SUCCESS.StringtoString()- 
Methods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, equalsResult, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCode 
- 
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, equalsMessage, getControls, getMessageID, setMessageID 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageID 
- 
Methods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage 
 - 
 
 - 
 
- 
- 
Field Detail
- 
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
 - Constant Field Values
 
 
- 
authenticationResultCode
private AuthenticationResultCode authenticationResultCode
Authentication result code. 
- 
connection
private Connection connection
Connection that authentication occurred on. 
 - 
 
- 
Constructor Detail
- 
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 responsecode- authentication result codeconn- connection the authentication occurred on
 
 - 
 
- 
Method Detail
- 
getAuthenticationResultCode
public AuthenticationResultCode getAuthenticationResultCode()
 
- 
getConnection
public Connection getConnection()
 
- 
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
public boolean equals(Object o)
- 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
public String toString()
- Overrides:
 toStringin classAbstractResult
 
- 
builder
static AuthenticationHandlerResponse.Builder builder()
Creates a builder for this class.- Returns:
 - new builder
 
 
 - 
 
 -