public interface AuthenticationStateHandler
AuthenticationStateHandler corresponds to a state of Okta's Authentication state machine. Each
method in @AuthenticationClient may return a different result
depending on the current state of the user (password locked, etc) and the current configuration of your Okta
organization.
handleUnknownhandleSuccesshandlePasswordExpiredhandlePasswordWarning (unless the warnBeforePasswordExpired flag was set when calling AuthenticationClient.authenticate(com.okta.authn.sdk.resource.AuthenticationRequest, AuthenticationStateHandler)handleLockedOut, if self-service unlock is enabled for your Okta organization.
If you want to support password recovery flows you must implement:
handleRecoveryhandleRecoveryChallengehandlePasswordResethandleMfaRequiredhandleMfaEnrollhandleMfaEnrollActivatehandleMfaChallengevoid handleUnauthenticated(@NotNull
@NotNull AuthenticationResponse unauthenticatedResponse)
void handlePasswordWarning(@NotNull
@NotNull AuthenticationResponse passwordWarning)
void handlePasswordExpired(@NotNull
@NotNull AuthenticationResponse passwordExpired)
void handleRecovery(@NotNull
@NotNull AuthenticationResponse recovery)
void handleRecoveryChallenge(@NotNull
@NotNull AuthenticationResponse recoveryChallenge)
void handlePasswordReset(@NotNull
@NotNull AuthenticationResponse passwordReset)
void handleLockedOut(@NotNull
@NotNull AuthenticationResponse lockedOut)
void handleMfaRequired(@NotNull
@NotNull AuthenticationResponse mfaRequiredResponse)
void handleMfaEnroll(@NotNull
@NotNull AuthenticationResponse mfaEnroll)
void handleMfaEnrollActivate(@NotNull
@NotNull AuthenticationResponse mfaEnrollActivate)
void handleMfaChallenge(@NotNull
@NotNull AuthenticationResponse mfaChallengeResponse)
void handleSuccess(@NotNull
@NotNull AuthenticationResponse successResponse)
void handleUnknown(@NotNull
@NotNull AuthenticationResponse unknownResponse)
Copyright © 2018-2022 Okta. All Rights Reserved.