Class ApiTokenAuthenticator

  • All Implemented Interfaces:
    step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>

    public class ApiTokenAuthenticator
    extends java.lang.Object
    implements step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
    • Field Detail

      • userAccessor

        protected step.core.access.UserAccessor userAccessor
    • Constructor Detail

      • ApiTokenAuthenticator

        public ApiTokenAuthenticator​(AccessTokenValidator accessTokenValidator,
                                     step.core.access.UserAccessor userAccessor,
                                     ApiTokenAccessor apiTokenAccessor)
    • Method Detail

      • authenticate

        public step.core.authentication.AuthenticationResults authenticate​(step.core.auth.ApiTokenCredentials credentials)
        Specified by:
        authenticate in interface step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
      • resetPassword

        public java.lang.String resetPassword​(java.lang.String userId)
        Specified by:
        resetPassword in interface step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
      • changePassword

        public void changePassword​(java.lang.String userId,
                                   java.lang.String password)
        Specified by:
        changePassword in interface step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
      • implementOTP

        public boolean implementOTP()
        Specified by:
        implementOTP in interface step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
      • supportPasswordManagement

        public boolean supportPasswordManagement()
        Specified by:
        supportPasswordManagement in interface step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
      • useUiLoginMask

        public boolean useUiLoginMask()
        Specified by:
        useUiLoginMask in interface step.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>