AuthenticationResult


public sealed interface AuthenticationResult

Known direct subclasses
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

The prompt was dismissed because the user clicked a custom fallback option.

public final class AuthenticationResult.Error implements AuthenticationResult

A result when an error has been encountered and authentication has stopped.

A result when the user has successfully authenticated.

Public methods

default AuthenticationResult.CustomFallbackSelected

Returns a CustomFallbackSelected only if it's a CustomFallbackSelected, returns null otherwise.

default AuthenticationResult.Error

Returns a Error only if it's a Error, returns null otherwise.

default boolean

Whether this AuthenticationResult is a CustomFallbackSelected.

default boolean

Whether this AuthenticationResult is an Error.

default boolean

Whether this AuthenticationResult is a Success.

default AuthenticationResult.Success

Returns a Success only if it's a Success, returns null otherwise.

Public methods

customFallbackSelected

Added in 1.4.0-alpha06
default AuthenticationResult.CustomFallbackSelected customFallbackSelected()

Returns a CustomFallbackSelected only if it's a CustomFallbackSelected, returns null otherwise.

error

Added in 1.4.0-alpha06
default AuthenticationResult.Error error()

Returns a Error only if it's a Error, returns null otherwise.

isCustomFallbackSelected

Added in 1.4.0-alpha06
default boolean isCustomFallbackSelected()

Whether this AuthenticationResult is a CustomFallbackSelected.

isError

Added in 1.4.0-alpha06
default boolean isError()

Whether this AuthenticationResult is an Error.

isSuccess

Added in 1.4.0-alpha06
default boolean isSuccess()

Whether this AuthenticationResult is a Success.

success

Added in 1.4.0-alpha06
default AuthenticationResult.Success success()

Returns a Success only if it's a Success, returns null otherwise.