Class OktaAuthenticationStateHandlerAdapter

  • All Implemented Interfaces:
    com.okta.authn.sdk.AuthenticationStateHandler

    public class OktaAuthenticationStateHandlerAdapter
    extends com.okta.authn.sdk.AuthenticationStateHandlerAdapter
    Since:
    6.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleLockedOut​(com.okta.authn.sdk.resource.AuthenticationResponse lockedOut)  
      void handlePasswordExpired​(com.okta.authn.sdk.resource.AuthenticationResponse passwordExpired)  
      void handlePasswordReset​(com.okta.authn.sdk.resource.AuthenticationResponse passwordReset)  
      void handlePasswordWarning​(com.okta.authn.sdk.resource.AuthenticationResponse passwordWarning)  
      void handleSuccess​(com.okta.authn.sdk.resource.AuthenticationResponse successResponse)  
      void handleUnauthenticated​(com.okta.authn.sdk.resource.AuthenticationResponse unauthenticatedResponse)  
      void handleUnknown​(com.okta.authn.sdk.resource.AuthenticationResponse authenticationResponse)  
      void throwExceptionIfNecessary()
      Throw exception if necessary.
      • Methods inherited from class com.okta.authn.sdk.AuthenticationStateHandlerAdapter

        handleMfaChallenge, handleMfaEnroll, handleMfaEnrollActivate, handleMfaRequired, handleRecovery, handleRecoveryChallenge
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OktaAuthenticationStateHandlerAdapter

        public OktaAuthenticationStateHandlerAdapter()
    • Method Detail

      • 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 java.lang.Exception
        Throw exception if necessary.
        Throws:
        java.lang.Exception - the exception