Package step.core.access
Class ApiTokenAuthenticator
- java.lang.Object
-
- step.core.access.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 Summary
Fields Modifier and Type Field Description protected step.core.access.UserAccessor
userAccessor
-
Constructor Summary
Constructors Constructor Description ApiTokenAuthenticator(AccessTokenValidator accessTokenValidator, step.core.access.UserAccessor userAccessor, ApiTokenAccessor apiTokenAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description step.core.authentication.AuthenticationResults
authenticate(step.core.auth.ApiTokenCredentials credentials)
void
changePassword(java.lang.String userId, java.lang.String password)
boolean
implementOTP()
java.lang.String
resetPassword(java.lang.String userId)
boolean
supportPasswordManagement()
boolean
useUiLoginMask()
-
-
-
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 interfacestep.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
-
resetPassword
public java.lang.String resetPassword(java.lang.String userId)
- Specified by:
resetPassword
in interfacestep.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
-
changePassword
public void changePassword(java.lang.String userId, java.lang.String password)
- Specified by:
changePassword
in interfacestep.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
-
implementOTP
public boolean implementOTP()
- Specified by:
implementOTP
in interfacestep.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
-
supportPasswordManagement
public boolean supportPasswordManagement()
- Specified by:
supportPasswordManagement
in interfacestep.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
-
useUiLoginMask
public boolean useUiLoginMask()
- Specified by:
useUiLoginMask
in interfacestep.core.authentication.Authenticator<step.core.auth.ApiTokenCredentials>
-
-