Class BackchannelAuthenticationResult
Object
se.curity.identityserver.sdk.authentication.BackchannelAuthenticationResult
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBackchannelAuthenticationResult(@Nullable AuthenticationAttributes authenticationAttributes, @Nullable BackchannelAuthenticatorState state) BackchannelAuthenticationResult(@Nullable AuthenticationAttributes authenticationAttributes, @Nullable BackchannelAuthenticatorState state, @Nullable AuthenticationActionResult authenticationActionResult) -
Method Summary
Modifier and TypeMethodDescriptionWhen a backchannel authentication request was successfully completed by an authenticator, this will return the authentication attributes that the authenticator has established as a result.CallsgetAuthenticationAttributes(), but throwsIllegalStateExceptionif it's empty.getState()booleanbooleanisFailed()booleantoString()
-
Field Details
-
UNKNOWN_RESULT
-
-
Constructor Details
-
BackchannelAuthenticationResult
public BackchannelAuthenticationResult(@Nullable AuthenticationAttributes authenticationAttributes, @Nullable BackchannelAuthenticatorState state) -
BackchannelAuthenticationResult
public BackchannelAuthenticationResult(@Nullable AuthenticationAttributes authenticationAttributes, @Nullable BackchannelAuthenticatorState state, @Nullable AuthenticationActionResult authenticationActionResult)
-
-
Method Details
-
getAuthenticationAttributes
When a backchannel authentication request was successfully completed by an authenticator, this will return the authentication attributes that the authenticator has established as a result.Returns empty if authentication was not yet finished, or when it the attempt was cancelled.
- Returns:
- Established authentication attributes, or null when they were not (yet) established.
-
getAuthenticationAttributesOrError
CallsgetAuthenticationAttributes(), but throwsIllegalStateExceptionif it's empty.This method is safe to call after
isSucceeded()is checked and returnstrue.- Returns:
- Established authentication attributes, or throws if not present
- Throws:
IllegalStateException- if authentication attributes are not present
-
getState
- Returns:
- the status of the backchannel authentication request for the authenticator
-
getActionResult
-
isExpired
public boolean isExpired()- Returns:
- true when the backchannel authentication request expired.
-
isFailed
public boolean isFailed()- Returns:
- true when the backchannel authentication request failed due to user action.
-
isSucceeded
public boolean isSucceeded()- Returns:
- true when the backchannel authentication was successful.
-
toString
-