Record Class BindResult
- Record Components:
resultCode
- The result code.matchedDn
- The matched DN associated, which may be set as empty ornull
indicating 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.EMPTY
if 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 benull
indicating that none was provided.controls
- theList
containing the controls.cause
- The throwable cause, which may benull
indicating that none was provided.saslServer
- TheSaslServer
to use by the underlying connection, ornull
if 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 thecause
record component.controls()
Returns the value of thecontrols
record component.Returns the value of thediagnosticMessage
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
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.Returns the value of thematchedDn
record component.Returns the value of thereferralUris
record component.Returns the value of theresultCode
record component.Returns the value of thesaslServer
record component.Returns the value of thesaslServerCredentials
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControls
Methods 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
true
if the result code is equal toResultCode.SASL_BIND_IN_PROGRESS
.- Returns:
true
if 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 theresultCode
record component.- Specified by:
resultCode
in interfaceResult
- Returns:
- the value of the
resultCode
record component
-
matchedDn
Returns the value of thematchedDn
record component. -
diagnosticMessage
Returns the value of thediagnosticMessage
record component.- Specified by:
diagnosticMessage
in interfaceResult
- Returns:
- the value of the
diagnosticMessage
record component
-
referralUris
Returns the value of thereferralUris
record component.- Specified by:
referralUris
in interfaceResult
- Returns:
- the value of the
referralUris
record component
-
saslServerCredentials
Returns the value of thesaslServerCredentials
record component.- Returns:
- the value of the
saslServerCredentials
record component
-
controls
Returns the value of thecontrols
record component.- Specified by:
controls
in interfaceProtocolOp
- Returns:
- the value of the
controls
record component
-
cause
Returns the value of thecause
record component. -
saslServer
Returns the value of thesaslServer
record component.- Returns:
- the value of the
saslServer
record component
-