AuthenticationResult
public sealed interface AuthenticationResult
AuthenticationResult.CustomFallbackSelected |
The prompt was dismissed because the user clicked a custom fallback option. |
AuthenticationResult.Error |
A result when an error has been encountered and authentication has stopped. |
AuthenticationResult.Success |
A result when the user has successfully authenticated. |
Types of the terminal result of the authentication.
Summary
Nested types |
|---|
public final class AuthenticationResult.CustomFallbackSelected implements AuthenticationResultThe prompt was dismissed because the user clicked a custom fallback option. |
public final class AuthenticationResult.Error implements AuthenticationResultA result when an error has been encountered and authentication has stopped. |
public final class AuthenticationResult.Success implements AuthenticationResultA result when the user has successfully authenticated. |
Public methods |
|
|---|---|
default AuthenticationResult.CustomFallbackSelected |
Returns a |
default AuthenticationResult.Error |
error()Returns a |
default boolean |
Whether this |
default boolean |
isError()Whether this |
default boolean |
Whether this |
default AuthenticationResult.Success |
success()Returns a |
Public methods
customFallbackSelected
default AuthenticationResult.CustomFallbackSelected customFallbackSelected()
Returns a CustomFallbackSelected only if it's a CustomFallbackSelected, returns null otherwise.
error
default AuthenticationResult.Error error()
Returns a Error only if it's a Error, returns null otherwise.
isCustomFallbackSelected
default boolean isCustomFallbackSelected()
Whether this AuthenticationResult is a CustomFallbackSelected.
isError
default boolean isError()
Whether this AuthenticationResult is an Error.
isSuccess
default boolean isSuccess()
Whether this AuthenticationResult is a Success.
success
default AuthenticationResult.Success success()
Returns a Success only if it's a Success, returns null otherwise.