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:
handleRecoveryhandleRecoveryChallengehandlePasswordResethandleMfaRequiredhandleMfaEnrollhandleMfaEnrollActivatehandleMfaChallenge| Modifier and Type | Method and Description |
|---|---|
void |
handleLockedOut(AuthenticationResponse lockedOut) |
void |
handleMfaChallenge(AuthenticationResponse mfaChallengeResponse) |
void |
handleMfaEnroll(AuthenticationResponse mfaEnroll) |
void |
handleMfaEnrollActivate(AuthenticationResponse mfaEnrollActivate) |
void |
handleMfaRequired(AuthenticationResponse mfaRequiredResponse) |
void |
handlePasswordExpired(AuthenticationResponse passwordExpired) |
void |
handlePasswordReset(AuthenticationResponse passwordReset) |
void |
handlePasswordWarning(AuthenticationResponse passwordWarning) |
void |
handleRecovery(AuthenticationResponse recovery) |
void |
handleRecoveryChallenge(AuthenticationResponse recoveryChallenge) |
void |
handleSuccess(AuthenticationResponse successResponse) |
void |
handleUnauthenticated(AuthenticationResponse unauthenticatedResponse) |
void |
handleUnknown(AuthenticationResponse unknownResponse) |
void handleUnauthenticated(AuthenticationResponse unauthenticatedResponse)
void handlePasswordWarning(AuthenticationResponse passwordWarning)
void handlePasswordExpired(AuthenticationResponse passwordExpired)
void handleRecovery(AuthenticationResponse recovery)
void handleRecoveryChallenge(AuthenticationResponse recoveryChallenge)
void handlePasswordReset(AuthenticationResponse passwordReset)
void handleLockedOut(AuthenticationResponse lockedOut)
void handleMfaRequired(AuthenticationResponse mfaRequiredResponse)
void handleMfaEnroll(AuthenticationResponse mfaEnroll)
void handleMfaEnrollActivate(AuthenticationResponse mfaEnrollActivate)
void handleMfaChallenge(AuthenticationResponse mfaChallengeResponse)
void handleSuccess(AuthenticationResponse successResponse)
void handleUnknown(AuthenticationResponse unknownResponse)
Copyright © 2018 Okta. All rights reserved.