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 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:
      handleUnauthenticated in interface com.okta.authn.sdk.AuthenticationStateHandler
      Overrides:
      handleUnauthenticated in class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    • handleSuccess

      public void handleSuccess(com.okta.authn.sdk.resource.AuthenticationResponse successResponse)
      Specified by:
      handleSuccess in interface com.okta.authn.sdk.AuthenticationStateHandler
      Overrides:
      handleSuccess in class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    • handlePasswordWarning

      public void handlePasswordWarning(com.okta.authn.sdk.resource.AuthenticationResponse passwordWarning)
      Specified by:
      handlePasswordWarning in interface com.okta.authn.sdk.AuthenticationStateHandler
      Overrides:
      handlePasswordWarning in class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    • handlePasswordExpired

      public void handlePasswordExpired(com.okta.authn.sdk.resource.AuthenticationResponse passwordExpired)
      Specified by:
      handlePasswordExpired in interface com.okta.authn.sdk.AuthenticationStateHandler
      Overrides:
      handlePasswordExpired in class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    • handlePasswordReset

      public void handlePasswordReset(com.okta.authn.sdk.resource.AuthenticationResponse passwordReset)
      Specified by:
      handlePasswordReset in interface com.okta.authn.sdk.AuthenticationStateHandler
      Overrides:
      handlePasswordReset in class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    • handleLockedOut

      public void handleLockedOut(com.okta.authn.sdk.resource.AuthenticationResponse lockedOut)
      Specified by:
      handleLockedOut in interface com.okta.authn.sdk.AuthenticationStateHandler
      Overrides:
      handleLockedOut in class com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    • throwExceptionIfNecessary

      public void throwExceptionIfNecessary() throws Exception
      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

      public Map<String,List<Object>> getUserAttributes()
    • getUsername

      public String getUsername()
    • getFailureException

      public Exception getFailureException()
    • getWarnings

      public List<org.apereo.cas.authentication.MessageDescriptor> getWarnings()