Package step.core.access.authentication
Class AccessTokenManager
- java.lang.Object
-
- step.core.access.authentication.AccessTokenManager
-
public class AccessTokenManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AccessTokenManager(JWTSettings jwtSettings, ApiTokenAccessor apiTokenAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiToken
createServiceAccountToken(step.core.accessors.AbstractUser user, long days, java.lang.String label)
java.util.List<ApiToken>
getApiTokensByUser(java.lang.String username)
AuthorizationServerConnector
getAuthorizationServerConnector()
java.lang.String
getLocalAccessToken(java.lang.String userName, java.lang.String role)
step.core.authentication.TokenEndpointsResponse
refreshToken(step.core.accessors.AbstractUser user, step.framework.server.access.TokenType tokenType, step.core.authentication.TokenEndpointsResponse tokenMap)
void
revokeServiceAccountToken(org.bson.types.ObjectId apiTokenId, java.lang.String username)
void
setAuthorizationServerConnector(AuthorizationServerConnector authorizationServerConnector)
-
-
-
Constructor Detail
-
AccessTokenManager
public AccessTokenManager(JWTSettings jwtSettings, ApiTokenAccessor apiTokenAccessor)
-
-
Method Detail
-
setAuthorizationServerConnector
public void setAuthorizationServerConnector(AuthorizationServerConnector authorizationServerConnector)
-
getLocalAccessToken
public java.lang.String getLocalAccessToken(java.lang.String userName, java.lang.String role)
-
refreshToken
public step.core.authentication.TokenEndpointsResponse refreshToken(step.core.accessors.AbstractUser user, step.framework.server.access.TokenType tokenType, step.core.authentication.TokenEndpointsResponse tokenMap) throws step.core.deployment.AuthorizationException
- Throws:
step.core.deployment.AuthorizationException
-
createServiceAccountToken
public ApiToken createServiceAccountToken(step.core.accessors.AbstractUser user, long days, java.lang.String label)
-
getApiTokensByUser
public java.util.List<ApiToken> getApiTokensByUser(java.lang.String username)
-
revokeServiceAccountToken
public void revokeServiceAccountToken(org.bson.types.ObjectId apiTokenId, java.lang.String username)
-
getAuthorizationServerConnector
public AuthorizationServerConnector getAuthorizationServerConnector()
-
-