DirectAuthenticationFlow

A Java-friendly wrapper around the Kotlin KotlinDirectAuthenticationFlow.

This class provides async methods returning CompletableFuture and a listener-based API for observing authentication state changes.

Parameters

delegate

The underlying Kotlin KotlinDirectAuthenticationFlow instance.

Functions

Link copied to clipboard

Registers a listener that is notified whenever the authentication state changes.

Link copied to clipboard
open override fun close()

Closes this flow, cancelling all in-flight operations.

Link copied to clipboard

Returns the current authentication state.

Link copied to clipboard

Removes a previously registered state listener.

Link copied to clipboard

Resets the authentication flow to DirectAuthenticationState.Idle.

Link copied to clipboard

Starts the direct authentication flow asynchronously.