Package step.core.access.authentication
Class AuthenticationManager
- java.lang.Object
-
- step.core.access.authentication.AuthenticationManager
-
public class AuthenticationManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AuthenticationManager.AuthenticationManagerListener
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SESSION_TOKEN_RESPONSE
-
Constructor Summary
Constructors Constructor Description AuthenticationManager(AccessTokenManager accessTokenManager, AccessTokenValidator accessTokenValidator, step.core.authentication.Authenticator authenticator, ApiTokenAuthenticator apiTokenAuthenticator, step.core.access.UserAccessor userAccessor, boolean authAsUserMgr, boolean authAsRoleMgr, boolean authAsProjectMembershipMgr, java.lang.String defaultRole)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(step.framework.server.Session session, step.core.auth.AbstractCredentials credentials)
boolean
authenticateByApiToken(step.framework.server.Session session, step.core.auth.ApiTokenCredentials credentials)
step.core.access.User
changePassword(step.core.access.User user, java.lang.String password)
java.lang.String
getAuthenticatorName()
boolean
implementOTP()
protected void
logoutSession(step.framework.server.Session session)
boolean
manageProjectMembershipInstep()
boolean
manageUserInStep()
boolean
manageUserRoleInStep()
boolean
registerListener(AuthenticationManager.AuthenticationManagerListener e)
java.lang.String
resetPwd(step.core.access.User user)
protected void
setUserToSession(step.framework.server.Session session, step.core.authentication.AuthenticationResults authenticationResults)
boolean
supportPasswordManagemnent()
boolean
useUiLoginMask()
-
-
-
Field Detail
-
SESSION_TOKEN_RESPONSE
public static final java.lang.String SESSION_TOKEN_RESPONSE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthenticationManager
public AuthenticationManager(AccessTokenManager accessTokenManager, AccessTokenValidator accessTokenValidator, step.core.authentication.Authenticator authenticator, ApiTokenAuthenticator apiTokenAuthenticator, step.core.access.UserAccessor userAccessor, boolean authAsUserMgr, boolean authAsRoleMgr, boolean authAsProjectMembershipMgr, java.lang.String defaultRole)
-
-
Method Detail
-
implementOTP
public boolean implementOTP()
-
getAuthenticatorName
public java.lang.String getAuthenticatorName()
-
supportPasswordManagemnent
public boolean supportPasswordManagemnent()
-
manageUserInStep
public boolean manageUserInStep()
-
manageUserRoleInStep
public boolean manageUserRoleInStep()
-
manageProjectMembershipInstep
public boolean manageProjectMembershipInstep()
-
useUiLoginMask
public boolean useUiLoginMask()
-
authenticate
public boolean authenticate(step.framework.server.Session session, step.core.auth.AbstractCredentials credentials)
-
authenticateByApiToken
public boolean authenticateByApiToken(step.framework.server.Session session, step.core.auth.ApiTokenCredentials credentials)
-
setUserToSession
protected void setUserToSession(step.framework.server.Session session, step.core.authentication.AuthenticationResults authenticationResults)
-
logoutSession
protected void logoutSession(step.framework.server.Session session)
-
resetPwd
public java.lang.String resetPwd(step.core.access.User user)
-
changePassword
public step.core.access.User changePassword(step.core.access.User user, java.lang.String password)
-
registerListener
public boolean registerListener(AuthenticationManager.AuthenticationManagerListener e)
-
-