Uses of Interface
com.okta.authn.sdk.AuthenticationStateHandler
Package
Description
-
Uses of AuthenticationStateHandler in com.okta.authn.sdk
Modifier and TypeClassDescriptionclass
Adapter implementation ofAuthenticationStateHandler
that callshandleUnknown(AuthenticationResponse)
for each method. -
Uses of AuthenticationStateHandler in com.okta.authn.sdk.client
Modifier and TypeMethodDescriptiondefault AuthenticationResponse
AuthenticationClient.activateFactor
(String factorId, ActivateFactorRequest request, AuthenticationStateHandler stateHandler) The sms, call and token:software:totp factor types require activation to complete the enrollment process.AuthenticationClient.activateFactor
(String factorId, ActivateFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) The sms, call and token:software:totp factor types require activation to complete the enrollment process.default AuthenticationResponse
AuthenticationClient.answerRecoveryQuestion
(RecoveryQuestionAnswerRequest request, AuthenticationStateHandler stateHandler) Answers the user’s recovery question to ensure only the end user redeemed the recovery token for recovery transaction with a RECOVERY status.AuthenticationClient.answerRecoveryQuestion
(RecoveryQuestionAnswerRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) Answers the user’s recovery question to ensure only the end user redeemed the recovery token for recovery transaction with a RECOVERY status.AuthenticationClient.answerRecoveryQuestion
(String answer, String stateToken, AuthenticationStateHandler stateHandler) Answers the user’s recovery question to ensure only the end user redeemed the recovery token for recovery transaction with a RECOVERY status.default AuthenticationResponse
AuthenticationClient.authenticate
(AuthenticationRequest request, AuthenticationStateHandler stateHandler) Initiates a username and password login against Okta's Authentication API.AuthenticationClient.authenticate
(AuthenticationRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) Initiates a username and password login against Okta's Authentication API.AuthenticationClient.authenticate
(String username, char[] password, String relayState, AuthenticationStateHandler stateHandler) Initiates a username and password login against Okta's Authentication API.default AuthenticationResponse
AuthenticationClient.challengeFactor
(String factorId, String stateToken, AuthenticationStateHandler stateHandler) Requests a challenge factor be sent to the user via the corresponding {code}factorId{code}.AuthenticationClient.challengeFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Requests a challenge factor be sent to the user via the corresponding {code}factorId{code}.AuthenticationClient.changePassword
(char[] oldPassword, char[] newPassword, String stateToken, AuthenticationStateHandler stateHandler) This operation changes a user’s password by providing the existing password and the new password password for authentication transactions with either the PASSWORD_EXPIRED or PASSWORD_WARN state.default AuthenticationResponse
AuthenticationClient.changePassword
(ChangePasswordRequest changePasswordRequest, AuthenticationStateHandler stateHandler) This operation changes a user’s password by providing the existing password and the new password password for authentication transactions with either the PASSWORD_EXPIRED or PASSWORD_WARN state.AuthenticationClient.changePassword
(ChangePasswordRequest changePasswordRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) This operation changes a user’s password by providing the existing password and the new password password for authentication transactions with either the PASSWORD_EXPIRED or PASSWORD_WARN state.default AuthenticationResponse
AuthenticationClient.enrollFactor
(FactorEnrollRequest factorEnrollRequest, AuthenticationStateHandler stateHandler) Enrolls a user with a factor assigned by their MFA Policy.AuthenticationClient.enrollFactor
(FactorEnrollRequest factorEnrollRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) Enrolls a user with a factor assigned by their MFA Policy.AuthenticationClient.enrollFactor
(FactorType factorType, FactorProvider factorProvider, FactorProfile factorProfile, String stateToken, AuthenticationStateHandler stateHandler) Enrolls a user with a factor assigned by their MFA Policy.default AuthenticationResponse
AuthenticationClient.previous
(String stateToken, AuthenticationStateHandler stateHandler) Moves the current transaction state back to the previous state.AuthenticationClient.previous
(String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Moves the current transaction state back to the previous state.default AuthenticationResponse
AuthenticationClient.recoverPassword
(RecoverPasswordRequest request, AuthenticationStateHandler stateHandler) Starts a new password recovery transaction for a given user and issues a recovery token that can be used to reset a user’s password.AuthenticationClient.recoverPassword
(RecoverPasswordRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) Starts a new password recovery transaction for a given user and issues a recovery token that can be used to reset a user’s password.AuthenticationClient.recoverPassword
(String username, FactorType factorType, String relayState, AuthenticationStateHandler stateHandler) Starts a new password recovery transaction for a given user and issues a recovery token that can be used to reset a user’s password.default AuthenticationResponse
AuthenticationClient.resendActivateFactor
(String factorId, String stateToken, AuthenticationStateHandler stateHandler) Resend an activation factor challenge to a user.AuthenticationClient.resendActivateFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Resend an activation factor challenge to a user.default AuthenticationResponse
AuthenticationClient.resendVerifyFactor
(String factorId, String stateToken, AuthenticationStateHandler stateHandler) Resend a factor verification challenge to a user.AuthenticationClient.resendVerifyFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Resend a factor verification challenge to a user.AuthenticationClient.resetPassword
(char[] newPassword, String stateToken, AuthenticationStateHandler stateHandler) Resets a user’s password to complete a recovery transaction with a PASSWORD_RESET state.default AuthenticationResponse
AuthenticationClient.resetPassword
(ChangePasswordRequest changePasswordRequest, AuthenticationStateHandler stateHandler) Resets a user’s password to complete a recovery transaction with a PASSWORD_RESET state.AuthenticationClient.resetPassword
(ChangePasswordRequest changePasswordRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) Resets a user’s password to complete a recovery transaction with a PASSWORD_RESET state.default AuthenticationResponse
AuthenticationClient.sendActivationEmail
(String factorId, String stateToken, AuthenticationStateHandler stateHandler) Sends an activation email when the user is unable to scan the QR code provided as part of an Okta Verify transaction.AuthenticationClient.sendActivationEmail
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Sends an activation email when the user is unable to scan the QR code provided as part of an Okta Verify transaction.default AuthenticationResponse
AuthenticationClient.skip
(String stateToken, AuthenticationStateHandler stateHandler) Skip the current transaction state and advance to the next state.AuthenticationClient.skip
(String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Skip the current transaction state and advance to the next state.default AuthenticationResponse
AuthenticationClient.unlockAccount
(UnlockAccountRequest request, AuthenticationStateHandler stateHandler) Starts a new unlock recovery transaction for a given user and issues a recovery token that can be used to unlock a user’s account.AuthenticationClient.unlockAccount
(UnlockAccountRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) Starts a new unlock recovery transaction for a given user and issues a recovery token that can be used to unlock a user’s account.AuthenticationClient.unlockAccount
(String username, FactorType factorType, String relayState, AuthenticationStateHandler stateHandler) Starts a new unlock recovery transaction for a given user and issues a recovery token that can be used to unlock a user’s account.default AuthenticationResponse
AuthenticationClient.verifyActivation
(String factorId, String stateToken, AuthenticationStateHandler stateHandler) Returns the state of factor's activation.AuthenticationClient.verifyActivation
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Returns the state of factor's activation.default AuthenticationResponse
AuthenticationClient.verifyFactor
(String factorId, VerifyFactorRequest request, AuthenticationStateHandler stateHandler) Verifies an enrolled factor for an authentication transaction with the MFA_REQUIRED or MFA_CHALLENGE stateAuthenticationClient.verifyFactor
(String factorId, VerifyFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) Verifies an enrolled factor for an authentication transaction with the MFA_REQUIRED or MFA_CHALLENGE statedefault AuthenticationResponse
AuthenticationClient.verifyFactor
(String factorId, String stateToken, AuthenticationStateHandler stateHandler) Verifies the state of a factor.AuthenticationClient.verifyFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Verifies the state of a factor.default AuthenticationResponse
AuthenticationClient.verifyRecoveryToken
(String recoveryToken, AuthenticationStateHandler stateHandler) Validates a recovery token that was distributed to the end user to continue the recovery transaction.AuthenticationClient.verifyRecoveryToken
(String recoveryToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) Validates a recovery token that was distributed to the end user to continue the recovery transaction.default AuthenticationResponse
AuthenticationClient.verifyUnlockAccount
(FactorType factorType, VerifyRecoveryRequest request, AuthenticationStateHandler stateHandler) Verifies a recovery challenge sent to the user for primary authentication for a recovery transaction with RECOVERY_CHALLENGE status.AuthenticationClient.verifyUnlockAccount
(FactorType factorType, VerifyRecoveryRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) Verifies a recovery challenge sent to the user for primary authentication for a recovery transaction with RECOVERY_CHALLENGE status. -
Uses of AuthenticationStateHandler in com.okta.authn.sdk.example
-
Uses of AuthenticationStateHandler in com.okta.authn.sdk.impl.client
Modifier and TypeMethodDescriptionDefaultAuthenticationClient.activateFactor
(String factorId, ActivateFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.answerRecoveryQuestion
(RecoveryQuestionAnswerRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.answerRecoveryQuestion
(String answer, String stateToken, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.authenticate
(AuthenticationRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.authenticate
(String username, char[] password, String relayState, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.challengeFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.changePassword
(char[] oldPassword, char[] newPassword, String stateToken, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.changePassword
(ChangePasswordRequest changePasswordRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.enrollFactor
(FactorEnrollRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.enrollFactor
(FactorType type, FactorProvider provider, FactorProfile factorProfile, String stateToken, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.previous
(String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.recoverPassword
(RecoverPasswordRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.recoverPassword
(String username, FactorType factorType, String relayState, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.resendActivateFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.resendVerifyFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.resetPassword
(char[] newPassword, String stateToken, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.resetPassword
(ChangePasswordRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.sendActivationEmail
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.skip
(String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.unlockAccount
(UnlockAccountRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.unlockAccount
(String username, FactorType factorType, String relayState, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.verifyActivation
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.verifyFactor
(String factorId, VerifyFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.verifyFactor
(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.verifyRecoveryToken
(String recoveryToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) DefaultAuthenticationClient.verifyUnlockAccount
(FactorType factorType, VerifyRecoveryRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) -
Uses of AuthenticationStateHandler in com.okta.example.config
Modifier and TypeMethodDescriptionApplicationConfig.authenticationStateHandler()
The Authentication state handler bean definition. -
Uses of AuthenticationStateHandler in com.okta.example.helpers
Modifier and TypeMethodDescriptionstatic org.springframework.web.servlet.ModelAndView
AuthHelper.proceedToVerifyView
(AuthenticationResponse authenticationResponse, AuthenticationClient authenticationClient, AuthenticationStateHandler ignoringStateHandler)