public interface AuthenticationClient
The API is targeted for developers who want to build their own end-to-end login experience to replace the built-in Okta login experience and addresses the following key scenarios:
AuthenticationClients
builder.
Client client = AuthenticationClients.builder().build();NOTE: We recommend you evaluate using an OIDC/OAuth 2.0 flow before considering this API
Modifier and Type | Method and Description |
---|---|
default AuthenticationResponse |
activateFactor(java.lang.String factorId,
ActivateFactorRequest request,
AuthenticationStateHandler stateHandler)
The sms, call and token:software:totp factor types require activation to complete the enrollment process.
|
AuthenticationResponse |
activateFactor(java.lang.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 |
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.
|
AuthenticationResponse |
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.
|
AuthenticationResponse |
answerRecoveryQuestion(java.lang.String answer,
java.lang.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 |
authenticate(AuthenticationRequest request,
AuthenticationStateHandler stateHandler)
Initiates a username and password login against Okta's Authentication API.
|
AuthenticationResponse |
authenticate(AuthenticationRequest request,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Initiates a username and password login against Okta's Authentication API.
|
AuthenticationResponse |
authenticate(java.lang.String username,
char[] password,
java.lang.String relayState,
AuthenticationStateHandler stateHandler)
Initiates a username and password login against Okta's Authentication API.
|
default AuthenticationResponse |
cancel(java.lang.String stateToken)
Cancels the current transaction and revokes the state token.
|
AuthenticationResponse |
cancel(java.lang.String stateToken,
RequestContext requestContext)
Cancels the current transaction and revokes the state token.
|
default AuthenticationResponse |
challengeFactor(java.lang.String factorId,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Requests a challenge factor be sent to the user via the corresponding {code}factorId{code}.
|
AuthenticationResponse |
challengeFactor(java.lang.String factorId,
java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Requests a challenge factor be sent to the user via the corresponding {code}factorId{code}.
|
default AuthenticationResponse |
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.
|
AuthenticationResponse |
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.
|
AuthenticationResponse |
changePassword(char[] oldPassword,
char[] newPassword,
java.lang.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 |
enrollFactor(FactorEnrollRequest factorEnrollRequest,
AuthenticationStateHandler stateHandler)
Enrolls a user with a factor assigned by their MFA Policy.
|
AuthenticationResponse |
enrollFactor(FactorEnrollRequest factorEnrollRequest,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Enrolls a user with a factor assigned by their MFA Policy.
|
AuthenticationResponse |
enrollFactor(FactorType factorType,
FactorProvider factorProvider,
FactorProfile factorProfile,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Enrolls a user with a factor assigned by their MFA Policy.
|
com.okta.sdk.ds.DataStore |
getDataStore()
Returns the internal
DataStore of the client. |
<T extends com.okta.sdk.resource.Resource> |
instantiate(java.lang.Class<T> clazz)
Delegates to the internal
dataStore instance. |
default AuthenticationResponse |
previous(java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Moves the current transaction state back to the previous state.
|
AuthenticationResponse |
previous(java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Moves the current transaction state back to the previous state.
|
default AuthenticationResponse |
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.
|
AuthenticationResponse |
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.
|
AuthenticationResponse |
recoverPassword(java.lang.String username,
FactorType factorType,
java.lang.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 |
resendActivateFactor(java.lang.String factorId,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Resend an activation factor challenge to a user.
|
AuthenticationResponse |
resendActivateFactor(java.lang.String factorId,
java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Resend an activation factor challenge to a user.
|
default AuthenticationResponse |
resendVerifyFactor(java.lang.String factorId,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Resend a factor verification challenge to a user.
|
AuthenticationResponse |
resendVerifyFactor(java.lang.String factorId,
java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Resend a factor verification challenge to a user.
|
default AuthenticationResponse |
resetPassword(ChangePasswordRequest changePasswordRequest,
AuthenticationStateHandler stateHandler)
Resets a user’s password to complete a recovery transaction with a PASSWORD_RESET state.
|
AuthenticationResponse |
resetPassword(ChangePasswordRequest changePasswordRequest,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Resets a user’s password to complete a recovery transaction with a PASSWORD_RESET state.
|
AuthenticationResponse |
resetPassword(char[] newPassword,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Resets a user’s password to complete a recovery transaction with a PASSWORD_RESET state.
|
default AuthenticationResponse |
sendActivationEmail(java.lang.String factorId,
java.lang.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.
|
AuthenticationResponse |
sendActivationEmail(java.lang.String factorId,
java.lang.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 |
skip(java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Skip the current transaction state and advance to the next state.
|
AuthenticationResponse |
skip(java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Skip the current transaction state and advance to the next state.
|
AuthenticationResponse |
unlockAccount(java.lang.String username,
FactorType factorType,
java.lang.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 |
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.
|
AuthenticationResponse |
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.
|
default AuthenticationResponse |
verifyActivation(java.lang.String factorId,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Returns the state of factor's activation.
|
AuthenticationResponse |
verifyActivation(java.lang.String factorId,
java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Returns the state of factor's activation.
|
default AuthenticationResponse |
verifyFactor(java.lang.String factorId,
java.lang.String stateToken,
AuthenticationStateHandler stateHandler)
Verifies the state of a factor.
|
AuthenticationResponse |
verifyFactor(java.lang.String factorId,
java.lang.String stateToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Verifies the state of a factor.
|
default AuthenticationResponse |
verifyFactor(java.lang.String factorId,
VerifyFactorRequest request,
AuthenticationStateHandler stateHandler)
Verifies an enrolled factor for an authentication transaction with the MFA_REQUIRED or MFA_CHALLENGE state
|
AuthenticationResponse |
verifyFactor(java.lang.String factorId,
VerifyFactorRequest request,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Verifies an enrolled factor for an authentication transaction with the MFA_REQUIRED or MFA_CHALLENGE state
|
default AuthenticationResponse |
verifyRecoveryToken(java.lang.String recoveryToken,
AuthenticationStateHandler stateHandler)
Validates a recovery token that was distributed to the end user to continue the recovery transaction.
|
AuthenticationResponse |
verifyRecoveryToken(java.lang.String recoveryToken,
RequestContext requestContext,
AuthenticationStateHandler stateHandler)
Validates a recovery token that was distributed to the end user to continue the recovery transaction.
|
default AuthenticationResponse |
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.
|
AuthenticationResponse |
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.
|
com.okta.sdk.ds.DataStore getDataStore()
DataStore
of the client. It is typically not necessary to invoke this method as
the Client implements the DataStore
API and will delegate to this instance automatically.DataStore
.<T extends com.okta.sdk.resource.Resource> T instantiate(java.lang.Class<T> clazz)
dataStore
instance. This is a convenience mechanism to eliminate the constant
need to call client.getDataStore()
every time one needs to instantiate Resource.T
- the Resource sub-typeclazz
- the Resource class to instantiate.AuthenticationResponse authenticate(java.lang.String username, char[] password, java.lang.String relayState, AuthenticationStateHandler stateHandler) throws AuthenticationException
username
- User’s non-qualified short-name (e.g. dade.murphy) or unique fully-qualified login (e.g dade.murphy@example.com)password
- User’s password credentialrelayState
- Optional state value that is persisted for the lifetime of the authentication transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationFailureException
- when username or password are invalidAuthenticationException
- any other authentication related errordefault AuthenticationResponse authenticate(AuthenticationRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationFailureException
- when username or password are invalidAuthenticationException
- any other authentication related errorAuthenticationResponse authenticate(AuthenticationRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machinerequestContext
- additional request headers and query parameters used for this requestAuthenticationFailureException
- when username or password are invalidAuthenticationException
- any other authentication related errorAuthenticationResponse changePassword(char[] oldPassword, char[] newPassword, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
oldPassword
- User’s current password that is expired or about to expirenewPassword
- New password for userstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineCredentialsException
- thrown if old password is invalid, or the new password fails to meet the
requirements of the password policyAuthenticationException
- any other authentication related errordefault AuthenticationResponse changePassword(ChangePasswordRequest changePasswordRequest, AuthenticationStateHandler stateHandler) throws AuthenticationException
changePasswordRequest
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineCredentialsException
- thrown if old password is invalid, or the new password fails to meet the
requirements of the password policyAuthenticationException
- any other authentication related errorAuthenticationResponse changePassword(ChangePasswordRequest changePasswordRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
changePasswordRequest
- a request object holds all attributes sent to the remote API.requestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineCredentialsException
- thrown if old password is invalid, or the new password fails to meet the
requirements of the password policyAuthenticationException
- any other authentication related errorAuthenticationResponse resetPassword(char[] newPassword, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
newPassword
- User’s new passwordstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineCredentialsException
- thrown if old password is invalid, or the new password fails to meet the
requirements of the password policyAuthenticationException
- any other authentication related errordefault AuthenticationResponse resetPassword(ChangePasswordRequest changePasswordRequest, AuthenticationStateHandler stateHandler) throws AuthenticationException
changePasswordRequest
- a request object holds all attributes sent to the remote APIstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineCredentialsException
- thrown if old password is invalid, or the new password fails to meet the
requirements of the password policyAuthenticationException
- any other authentication related errorAuthenticationResponse resetPassword(ChangePasswordRequest changePasswordRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
changePasswordRequest
- a request object holds all attributes sent to the remote APIrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineCredentialsException
- thrown if old password is invalid, or the new password fails to meet the
requirements of the password policyAuthenticationException
- any other authentication related errorAuthenticationResponse enrollFactor(FactorType factorType, FactorProvider factorProvider, FactorProfile factorProfile, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorType
- type of factorfactorProvider
- factor providerfactorProfile
- profile of a supported factorstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse enrollFactor(FactorEnrollRequest factorEnrollRequest, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorEnrollRequest
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse enrollFactor(FactorEnrollRequest factorEnrollRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorEnrollRequest
- a request object holds all attributes sent to the remote API.requestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse recoverPassword(java.lang.String username, FactorType factorType, java.lang.String relayState, AuthenticationStateHandler stateHandler) throws AuthenticationException
username
- User’s non-qualified short-name (e.g. dade.murphy) or unique fully-qualified login (dade.murphy@example.com)factorType
- Recovery factor to use for primary authenticationrelayState
- Optional state value that is persisted for the lifetime of the recovery transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse recoverPassword(RecoverPasswordRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse recoverPassword(RecoverPasswordRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machinerequestContext
- additional request headers and query parameters used for this requestAuthenticationException
- any other authentication related errorAuthenticationResponse unlockAccount(java.lang.String username, FactorType factorType, java.lang.String relayState, AuthenticationStateHandler stateHandler) throws AuthenticationException
username
- User’s non-qualified short-name (dade.murphy) or unique fully-qualified login (dade.murphy@example.com)factorType
- Recovery factor to use for primary authenticationrelayState
- Optional state value that is persisted for the lifetime of the recovery transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse unlockAccount(UnlockAccountRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse unlockAccount(UnlockAccountRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machinerequestContext
- additional request headers and query parameters used for this requestAuthenticationException
- any other authentication related errorAuthenticationResponse answerRecoveryQuestion(java.lang.String answer, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
answer
- answer to user’s recovery questionstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineInvalidRecoveryAnswerException
- thrown when the answer is invalidAuthenticationException
- any other authentication related errordefault AuthenticationResponse answerRecoveryQuestion(RecoveryQuestionAnswerRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineInvalidRecoveryAnswerException
- thrown when the answer is invalidAuthenticationException
- any other authentication related errorAuthenticationResponse answerRecoveryQuestion(RecoveryQuestionAnswerRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
request
- a request object holds all attributes sent to the remote API.stateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machinerequestContext
- additional request headers and query parameters used for this requestInvalidRecoveryAnswerException
- thrown when the answer is invalidAuthenticationException
- any other authentication related errordefault AuthenticationResponse previous(java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
stateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse previous(java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
stateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse skip(java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
stateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse skip(java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
stateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse cancel(java.lang.String stateToken) throws AuthenticationException
stateToken
- state token for current transactionAuthenticationException
- any other authentication related errorAuthenticationResponse cancel(java.lang.String stateToken, RequestContext requestContext) throws AuthenticationException
stateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requestAuthenticationException
- any other authentication related errordefault AuthenticationResponse activateFactor(java.lang.String factorId, ActivateFactorRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentrequest
- the request object containing the required attributes to fulfill the activationstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse activateFactor(java.lang.String factorId, ActivateFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentrequest
- the request object containing the required attributes to fulfill the activationrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse verifyFactor(java.lang.String factorId, VerifyFactorRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentrequest
- the request object containing the required attributes to fulfill the verificationstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse verifyFactor(java.lang.String factorId, VerifyFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentrequest
- the request object containing the required attributes to fulfill the verificationstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machinerequestContext
- additional request headers and query parameters used for this requestAuthenticationException
- any other authentication related errordefault AuthenticationResponse verifyFactor(java.lang.String factorId, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse verifyFactor(java.lang.String factorId, java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse challengeFactor(java.lang.String factorId, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse challengeFactor(java.lang.String factorId, java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse verifyUnlockAccount(FactorType factorType, VerifyRecoveryRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorType
- type of factorrequest
- the request object containing the required attributes to fulfill this challengestateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse verifyUnlockAccount(FactorType factorType, VerifyRecoveryRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorType
- type of factorrequest
- the request object containing the required attributes to fulfill this challengestateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machinerequestContext
- additional request headers and query parameters used for this requestAuthenticationException
- any other authentication related errordefault AuthenticationResponse resendActivateFactor(java.lang.String factorId, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse resendActivateFactor(java.lang.String factorId, java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse resendVerifyFactor(java.lang.String factorId, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse resendVerifyFactor(java.lang.String factorId, java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse sendActivationEmail(java.lang.String factorId, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse sendActivationEmail(java.lang.String factorId, java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
factorId
- id of factor returned from enrollmentstateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse verifyActivation(java.lang.String factorId, java.lang.String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
stateToken
- state token for current transactionstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse verifyActivation(java.lang.String factorId, java.lang.String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
stateToken
- state token for current transactionrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errordefault AuthenticationResponse verifyRecoveryToken(java.lang.String recoveryToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
recoveryToken
- Recovery token that was distributed to the end user via out-of-band mechanism such as emailstateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorAuthenticationResponse verifyRecoveryToken(java.lang.String recoveryToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
recoveryToken
- Recovery token that was distributed to the end user via out-of-band mechanism such as emailrequestContext
- additional request headers and query parameters used for this requeststateHandler
- State handler that handles the resulting status change corresponding to the Okta authentication state machineAuthenticationException
- any other authentication related errorCopyright © 2018-2022 Okta. All Rights Reserved.