Record Class BindResult
- Record Components:
resultCode- The result code.matchedDn- The matched DN associated, which may be set as empty ornullindicating that none was provided. The returned matched DN will be empty if none was provided (nevernull).diagnosticMessage- The diagnostic message, which may be set as empty ornull. The returned diagnostic message will beLocalizableMessage.EMPTYif none was provided (nevernull).referralUris- The optional referrals are present in a BindResult if the result code is set toResultCode.REFERRAL, and they are absent with all other result codes.saslServerCredentials- The server SASL credentials associated with this bind result, which may benullindicating that none was provided.controls- theListcontaining the controls.cause- The throwable cause, which may benullindicating that none was provided.saslServer- TheSaslServerto use by the underlying connection, ornullif SASL integrity and/or privacy protection must not be enabled.
- All Implemented Interfaces:
ProtocolOp,Response,Result
A successful Bind operation is indicated by a Bind result with a result code
set to ResultCode.SUCCESS and can be determined by invoking the
Result.isSuccess() method.
The server SASL credentials field is used as part of a SASL-defined bind mechanism to allow the client to authenticate the server to which it is communicating, or to perform "challenge-response" authentication. If the client bound using a form of simple authentication, or the SASL mechanism does not require the server to return information to the client, then this field shall not be included in the Bind result.
If the server requires the client to send a new SASL Bind request in order to
continue the authentication process then the result code is set to
ResultCode.SASL_BIND_IN_PROGRESS and can be determined by invoking
the isSaslBindInProgress() method.
-
Constructor Summary
ConstructorsConstructorDescriptionBindResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, ByteString saslServerCredentials, List<Control> controls, Throwable cause, SaslServer saslServer) Creates a newBindResult. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.controls()Returns the value of thecontrolsrecord component.Returns the value of thediagnosticMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanIndicates whether the server requires the client to send a new SASL Bind request with the same SASL mechanism in order to continue the authentication process.Returns the value of thematchedDnrecord component.Returns the value of thereferralUrisrecord component.Returns the value of theresultCoderecord component.Returns the value of thesaslServerrecord component.Returns the value of thesaslServerCredentialsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControlsMethods inherited from interface org.forgerock.opendj.ldap.messages.Result
diagnosticMessageAsString, isReferral, isSuccess
-
Constructor Details
-
BindResult
public BindResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, ByteString saslServerCredentials, List<Control> controls, Throwable cause, SaslServer saslServer) Creates a newBindResult.
-
-
Method Details
-
isSaslBindInProgress
public boolean isSaslBindInProgress()Indicates whether the server requires the client to send a new SASL Bind request with the same SASL mechanism in order to continue the authentication process. This typically occurs during multi-stage (challenge response) authentication.Specifically, this method returns
trueif the result code is equal toResultCode.SASL_BIND_IN_PROGRESS.- Returns:
trueif the server requires the client to send a new SASL Bind request, otherwisefalse.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
resultCode
Returns the value of theresultCoderecord component.- Specified by:
resultCodein interfaceResult- Returns:
- the value of the
resultCoderecord component
-
matchedDn
Returns the value of thematchedDnrecord component. -
diagnosticMessage
Returns the value of thediagnosticMessagerecord component.- Specified by:
diagnosticMessagein interfaceResult- Returns:
- the value of the
diagnosticMessagerecord component
-
referralUris
Returns the value of thereferralUrisrecord component.- Specified by:
referralUrisin interfaceResult- Returns:
- the value of the
referralUrisrecord component
-
saslServerCredentials
Returns the value of thesaslServerCredentialsrecord component.- Returns:
- the value of the
saslServerCredentialsrecord component
-
controls
Returns the value of thecontrolsrecord component.- Specified by:
controlsin interfaceProtocolOp- Returns:
- the value of the
controlsrecord component
-
cause
Returns the value of thecauserecord component. -
saslServer
Returns the value of thesaslServerrecord component.- Returns:
- the value of the
saslServerrecord component
-