Package com.okta.authn.sdk
Interface AuthenticationStateHandler
- All Known Implementing Classes:
AuthenticationStateHandlerAdapter
,ExampleAuthenticationStateHandler
public interface AuthenticationStateHandler
Each method of
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.
Implementation Notes:
Your Okta organization MAY not be configured to enter all of these states. At minimum you should implement:handleUnknown
handleSuccess
handlePasswordExpired
handlePasswordWarning
(unless thewarnBeforePasswordExpired
flag was set when callingAuthenticationClient.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:
handleRecovery
handleRecoveryChallenge
handlePasswordReset
handleMfaRequired
handleMfaEnroll
handleMfaEnrollActivate
handleMfaChallenge
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleLockedOut
(@NotNull AuthenticationResponse lockedOut) void
handleMfaChallenge
(@NotNull AuthenticationResponse mfaChallengeResponse) void
handleMfaEnroll
(@NotNull AuthenticationResponse mfaEnroll) void
handleMfaEnrollActivate
(@NotNull AuthenticationResponse mfaEnrollActivate) void
handleMfaRequired
(@NotNull AuthenticationResponse mfaRequiredResponse) void
handlePasswordExpired
(@NotNull AuthenticationResponse passwordExpired) void
handlePasswordReset
(@NotNull AuthenticationResponse passwordReset) void
handlePasswordWarning
(@NotNull AuthenticationResponse passwordWarning) void
handleRecovery
(@NotNull AuthenticationResponse recovery) void
handleRecoveryChallenge
(@NotNull AuthenticationResponse recoveryChallenge) void
handleSuccess
(@NotNull AuthenticationResponse successResponse) void
handleUnauthenticated
(@NotNull AuthenticationResponse unauthenticatedResponse) void
handleUnknown
(@NotNull AuthenticationResponse unknownResponse)
-
Method Details
-
handleUnauthenticated
-
handlePasswordWarning
-
handlePasswordExpired
-
handleRecovery
-
handleRecoveryChallenge
-
handlePasswordReset
-
handleLockedOut
-
handleMfaRequired
-
handleMfaEnroll
-
handleMfaEnrollActivate
-
handleMfaChallenge
-
handleSuccess
-
handleUnknown
-