@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class OAUTHBEARERBindResult extends BindResult
OAUTHBEARERBindRequest
,
Serialized FormNO_CONTROLS
Constructor and Description |
---|
OAUTHBEARERBindResult(BindResult bindResult)
Creates a new OAUTHBEARER bind result from the provided single bind
result.
|
OAUTHBEARERBindResult(BindResult initialBindResult,
BindResult finalBindResult)
Creates a new OAUTHBEARER bind result from the provided pair of results,
which correspond to the initial and final (if any) phases of bind
processing.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthorizationErrorCode()
Retrieves the authorization error code obtained from the failure details
object, if available.
|
JSONObject |
getFailureDetailsObject()
Retrieves a JSON object with additional information about a failed
authentication attempt, if any.
|
BindResult |
getFinalBindResult()
Retrieves the result obtained from the final bind attempt in the
OAUTHBEARER authentication process, if any.
|
BindResult |
getInitialBindResult()
Retrieves the result obtained from the initial bind attempt in the
OAUTHBEARER authentication process.
|
java.lang.String |
getOpenIDConfigurationURL()
Retrieves the OpenID configuration URL obtained from the failure details
object, if available.
|
java.util.Set<java.lang.String> |
getScopes()
Retrieves the set of scopes included in the failure details object, if
available.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP result to the provided buffer.
|
getServerSASLCredentials
getDiagnosticMessage, getMatchedDN, getMessageID, getOperationType, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl, toString
public OAUTHBEARERBindResult(@NotNull BindResult bindResult)
bindResult
- The bind result to use to create this OAUTHBEARER bind
result. It must not be null
.public OAUTHBEARERBindResult(@NotNull BindResult initialBindResult, @Nullable BindResult finalBindResult)
initialBindResult
- The result obtained in response to the initial
OAUTHBEARER bind request. It must not be
null
.finalBindResult
- The result obtained in response to the final
OAUTHBEARER bind request, if any. It may be
null
if the bind consisted of only a
single request.@NotNull public BindResult getInitialBindResult()
@Nullable public BindResult getFinalBindResult()
null
for a successful bind, and it may or may not be null
for a failed attempt, based on whether credentials were included in the
initial bind result.null
if the
authentication process only included a single bind.@Nullable public JSONObject getFailureDetailsObject()
null
this is not available.@Nullable public java.lang.String getAuthorizationErrorCode()
null
if no failure details object was provided
or if it did not include an authorization error code.@NotNull public java.util.Set<java.lang.String> getScopes()
@Nullable public java.lang.String getOpenIDConfigurationURL()
null
if no failure details object was provided
or if it did not include an OpenID configuration URL.public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface LDAPResponse
toString
in class BindResult
buffer
- The buffer to which to append a string representation of
this LDAP result.