Package com.okta.authn.sdk.example
Class ExampleAuthenticationStateHandler
- java.lang.Object
-
- com.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
- com.okta.authn.sdk.example.ExampleAuthenticationStateHandler
-
- All Implemented Interfaces:
AuthenticationStateHandler
public class ExampleAuthenticationStateHandler extends AuthenticationStateHandlerAdapter
-
-
Constructor Summary
Constructors Constructor Description ExampleAuthenticationStateHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticationResponse
getPreviousAuthResult()
void
handleLockedOut(AuthenticationResponse lockedOutResponse)
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
handleRecovery(AuthenticationResponse recoveryResponse)
void
handleRecoveryChallenge(AuthenticationResponse recoveryChallenge)
void
handleSuccess(AuthenticationResponse successResponse)
void
handleUnknown(AuthenticationResponse unknownResponse)
-
Methods inherited from class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
handlePasswordWarning, handleUnauthenticated
-
-
-
-
Method Detail
-
handleSuccess
public void handleSuccess(AuthenticationResponse successResponse)
- Specified by:
handleSuccess
in interfaceAuthenticationStateHandler
- Overrides:
handleSuccess
in classAuthenticationStateHandlerAdapter
-
handlePasswordExpired
public void handlePasswordExpired(AuthenticationResponse passwordExpired)
- Specified by:
handlePasswordExpired
in interfaceAuthenticationStateHandler
- Overrides:
handlePasswordExpired
in classAuthenticationStateHandlerAdapter
-
handleMfaRequired
public void handleMfaRequired(AuthenticationResponse mfaRequiredResponse)
- Specified by:
handleMfaRequired
in interfaceAuthenticationStateHandler
- Overrides:
handleMfaRequired
in classAuthenticationStateHandlerAdapter
-
handleMfaChallenge
public void handleMfaChallenge(AuthenticationResponse mfaChallengeResponse)
- Specified by:
handleMfaChallenge
in interfaceAuthenticationStateHandler
- Overrides:
handleMfaChallenge
in classAuthenticationStateHandlerAdapter
-
handleLockedOut
public void handleLockedOut(AuthenticationResponse lockedOutResponse)
- Specified by:
handleLockedOut
in interfaceAuthenticationStateHandler
- Overrides:
handleLockedOut
in classAuthenticationStateHandlerAdapter
-
handleRecoveryChallenge
public void handleRecoveryChallenge(AuthenticationResponse recoveryChallenge)
- Specified by:
handleRecoveryChallenge
in interfaceAuthenticationStateHandler
- Overrides:
handleRecoveryChallenge
in classAuthenticationStateHandlerAdapter
-
handleRecovery
public void handleRecovery(AuthenticationResponse recoveryResponse)
- Specified by:
handleRecovery
in interfaceAuthenticationStateHandler
- Overrides:
handleRecovery
in classAuthenticationStateHandlerAdapter
-
handleMfaEnroll
public void handleMfaEnroll(AuthenticationResponse mfaEnroll)
- Specified by:
handleMfaEnroll
in interfaceAuthenticationStateHandler
- Overrides:
handleMfaEnroll
in classAuthenticationStateHandlerAdapter
-
handleMfaEnrollActivate
public void handleMfaEnrollActivate(AuthenticationResponse mfaEnrollActivate)
- Specified by:
handleMfaEnrollActivate
in interfaceAuthenticationStateHandler
- Overrides:
handleMfaEnrollActivate
in classAuthenticationStateHandlerAdapter
-
handlePasswordReset
public void handlePasswordReset(AuthenticationResponse passwordReset)
- Specified by:
handlePasswordReset
in interfaceAuthenticationStateHandler
- Overrides:
handlePasswordReset
in classAuthenticationStateHandlerAdapter
-
handleUnknown
public void handleUnknown(AuthenticationResponse unknownResponse)
-
getPreviousAuthResult
public static AuthenticationResponse getPreviousAuthResult()
-
-