AuthenticationResult


public sealed interface AuthenticationResult

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

Returns a Error only if it's a Error, throws otherwise.

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, throws otherwise.

Public methods

error

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

Returns a Error only if it's a Error, throws otherwise.

isError

Added in 1.4.0-alpha03
default boolean isError()

Whether this AuthenticationResult is an Error.

isSuccess

Added in 1.4.0-alpha03
default boolean isSuccess()

Whether this AuthenticationResult is a Success.

success

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

Returns a Success only if it's a Success, throws otherwise.