MfaRequired
class MfaRequired(delegate: DirectAuthenticationState.MfaRequired) : DirectAuthenticationState, Closeable
A Java-friendly wrapper around KotlinDirectAuthenticationState.MfaRequired.
Provides async methods for MFA challenge and resume operations.
Must be closed when no longer needed to release coroutine resources.
Parameters
delegate
The underlying Kotlin KotlinDirectAuthenticationState.MfaRequired instance.
Functions
Link copied to clipboard
Initiates an MFA challenge with the specified secondary factor.
fun challengeAsync(secondaryFactor: SecondaryFactor, challengeTypesSupported: List<ChallengeGrantType>): CompletableFuture<DirectAuthenticationState>
Initiates an MFA challenge with the specified secondary factor and supported challenge types.
Link copied to clipboard
Closes this continuation, cancelling any in-flight challengeAsync/resumeAsync call.
Link copied to clipboard
Continues the MFA flow using the specified secondary factor.
fun resumeAsync(secondaryFactor: SecondaryFactor, challengeTypesSupported: List<ChallengeGrantType>): CompletableFuture<DirectAuthenticationState>
Continues the MFA flow using the specified secondary factor and supported challenge types.