public class DefaultAuthenticationClient extends com.okta.sdk.impl.client.BaseClient implements AuthenticationClient
| Constructor and Description |
|---|
DefaultAuthenticationClient(com.okta.sdk.impl.config.ClientConfiguration clientConfiguration)
Instantiates a new AuthenticationClient instance that will communicate with the Okta REST API.
|
create, createDataStore, createRequestExecutor, delete, getCacheManager, getClientCredentials, getDataStore, getResource, http, instantiate, saveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateFactor, answerRecoveryQuestion, authenticate, cancel, challengeFactor, changePassword, enrollFactor, getDataStore, instantiate, previous, recoverPassword, resendActivateFactor, resendVerifyFactor, resetPassword, skip, unlockAccount, verifyActivation, verifyFactor, verifyFactor, verifyRecoveryToken, verifyUnlockAccountpublic DefaultAuthenticationClient(com.okta.sdk.impl.config.ClientConfiguration clientConfiguration)
clientConfiguration - the ClientConfiguration containing the connection informationpublic AuthenticationResponse authenticate(String username, char[] password, String relayState, AuthenticationStateHandler stateHandler) throws AuthenticationException
authenticate in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse authenticate(AuthenticationRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
authenticate in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse changePassword(char[] oldPassword, char[] newPassword, String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
changePassword in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse changePassword(ChangePasswordRequest changePasswordRequest, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
changePassword in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse resetPassword(char[] newPassword, String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
resetPassword in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse resetPassword(ChangePasswordRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
resetPassword in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse recoverPassword(String username, FactorType factorType, String relayState, AuthenticationStateHandler stateHandler) throws AuthenticationException
recoverPassword in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse recoverPassword(RecoverPasswordRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
recoverPassword in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse challengeFactor(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
challengeFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse verifyFactor(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
verifyFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse verifyFactor(String factorId, VerifyFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
verifyFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse activateFactor(String factorId, ActivateFactorRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
activateFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse verifyUnlockAccount(FactorType factorType, VerifyRecoveryRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
verifyUnlockAccount in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse unlockAccount(String username, FactorType factorType, String relayState, AuthenticationStateHandler stateHandler) throws AuthenticationException
unlockAccount in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse unlockAccount(UnlockAccountRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
unlockAccount in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse answerRecoveryQuestion(String answer, String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
answerRecoveryQuestion in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse answerRecoveryQuestion(RecoveryQuestionAnswerRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
answerRecoveryQuestion in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse enrollFactor(FactorType type, FactorProvider provider, FactorProfile factorProfile, String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException
enrollFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse enrollFactor(FactorEnrollRequest request, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
enrollFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse previous(String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
previous in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse skip(String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
skip in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse cancel(String stateToken, RequestContext requestContext) throws AuthenticationException
cancel in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse resendActivateFactor(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
resendActivateFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse resendVerifyFactor(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
resendVerifyFactor in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse verifyActivation(String factorId, String stateToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
verifyActivation in interface AuthenticationClientAuthenticationExceptionpublic AuthenticationResponse verifyRecoveryToken(String recoveryToken, RequestContext requestContext, AuthenticationStateHandler stateHandler) throws AuthenticationException
verifyRecoveryToken in interface AuthenticationClientAuthenticationExceptionCopyright © 2018–2020 Okta. All rights reserved.