Package org.apereo.cas.okta
Class OktaAuthenticationStateHandlerAdapter
java.lang.Object
com.okta.authn.sdk.AuthenticationStateHandlerAdapter
org.apereo.cas.okta.OktaAuthenticationStateHandlerAdapter
- All Implemented Interfaces:
com.okta.authn.sdk.AuthenticationStateHandler
public class OktaAuthenticationStateHandlerAdapter
extends com.okta.authn.sdk.AuthenticationStateHandlerAdapter
- Since:
- 6.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionOktaAuthenticationStateHandlerAdapter(org.apereo.cas.authentication.AuthenticationPasswordPolicyHandlingStrategy passwordPolicyHandlingStrategy, org.apereo.cas.authentication.support.password.PasswordPolicyContext passwordPolicyConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.authentication.support.password.PasswordPolicyContextorg.apereo.cas.authentication.AuthenticationPasswordPolicyHandlingStrategyList<org.apereo.cas.authentication.MessageDescriptor> voidhandleLockedOut(com.okta.authn.sdk.resource.AuthenticationResponse lockedOut) voidhandlePasswordExpired(com.okta.authn.sdk.resource.AuthenticationResponse passwordExpired) voidhandlePasswordReset(com.okta.authn.sdk.resource.AuthenticationResponse passwordReset) voidhandlePasswordWarning(com.okta.authn.sdk.resource.AuthenticationResponse passwordWarning) voidhandleSuccess(com.okta.authn.sdk.resource.AuthenticationResponse successResponse) voidhandleUnauthenticated(com.okta.authn.sdk.resource.AuthenticationResponse unauthenticatedResponse) voidhandleUnknown(com.okta.authn.sdk.resource.AuthenticationResponse authenticationResponse) voidThrow exception if necessary.Methods inherited from class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
handleMfaChallenge, handleMfaEnroll, handleMfaEnrollActivate, handleMfaRequired, handleRecovery, handleRecoveryChallenge
-
Constructor Details
-
OktaAuthenticationStateHandlerAdapter
public OktaAuthenticationStateHandlerAdapter(org.apereo.cas.authentication.AuthenticationPasswordPolicyHandlingStrategy passwordPolicyHandlingStrategy, org.apereo.cas.authentication.support.password.PasswordPolicyContext passwordPolicyConfiguration)
-
-
Method Details
-
handleUnknown
public void handleUnknown(com.okta.authn.sdk.resource.AuthenticationResponse authenticationResponse) -
handleUnauthenticated
public void handleUnauthenticated(com.okta.authn.sdk.resource.AuthenticationResponse unauthenticatedResponse) - Specified by:
handleUnauthenticatedin interfacecom.okta.authn.sdk.AuthenticationStateHandler- Overrides:
handleUnauthenticatedin classcom.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
handleSuccess
public void handleSuccess(com.okta.authn.sdk.resource.AuthenticationResponse successResponse) - Specified by:
handleSuccessin interfacecom.okta.authn.sdk.AuthenticationStateHandler- Overrides:
handleSuccessin classcom.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
handlePasswordWarning
public void handlePasswordWarning(com.okta.authn.sdk.resource.AuthenticationResponse passwordWarning) - Specified by:
handlePasswordWarningin interfacecom.okta.authn.sdk.AuthenticationStateHandler- Overrides:
handlePasswordWarningin classcom.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
handlePasswordExpired
public void handlePasswordExpired(com.okta.authn.sdk.resource.AuthenticationResponse passwordExpired) - Specified by:
handlePasswordExpiredin interfacecom.okta.authn.sdk.AuthenticationStateHandler- Overrides:
handlePasswordExpiredin classcom.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
handlePasswordReset
public void handlePasswordReset(com.okta.authn.sdk.resource.AuthenticationResponse passwordReset) - Specified by:
handlePasswordResetin interfacecom.okta.authn.sdk.AuthenticationStateHandler- Overrides:
handlePasswordResetin classcom.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
handleLockedOut
public void handleLockedOut(com.okta.authn.sdk.resource.AuthenticationResponse lockedOut) - Specified by:
handleLockedOutin interfacecom.okta.authn.sdk.AuthenticationStateHandler- Overrides:
handleLockedOutin classcom.okta.authn.sdk.AuthenticationStateHandlerAdapter
-
throwExceptionIfNecessary
Throw exception if necessary.- Throws:
Exception- the exception
-
getPasswordPolicyHandlingStrategy
public org.apereo.cas.authentication.AuthenticationPasswordPolicyHandlingStrategy getPasswordPolicyHandlingStrategy() -
getPasswordPolicyConfiguration
public org.apereo.cas.authentication.support.password.PasswordPolicyContext getPasswordPolicyConfiguration() -
getUserAttributes
-
getUsername
-
getFailureException
-
getWarnings
-