Package step.core.access.authentication
Class AccessTokenManager
- java.lang.Object
-
- step.core.access.authentication.AccessTokenManager
-
public class AccessTokenManager extends Object
-
-
Constructor Summary
Constructors Constructor Description AccessTokenManager(JWTSettings jwtSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationServerConnector
getAuthorizationServerConnector()
String
getLocalAccessToken(String userName, String role)
String
getServiceAccountToken(step.framework.server.Session session, long days)
String
refreshToken(step.framework.server.Session session)
void
setAuthorizationServerConnector(AuthorizationServerConnector authorizationServerConnector)
-
-
-
Constructor Detail
-
AccessTokenManager
public AccessTokenManager(JWTSettings jwtSettings)
-
-
Method Detail
-
setAuthorizationServerConnector
public void setAuthorizationServerConnector(AuthorizationServerConnector authorizationServerConnector)
-
refreshToken
public String refreshToken(step.framework.server.Session session) throws step.core.deployment.AuthorizationException
- Throws:
step.core.deployment.AuthorizationException
-
getServiceAccountToken
public String getServiceAccountToken(step.framework.server.Session session, long days)
-
getAuthorizationServerConnector
public AuthorizationServerConnector getAuthorizationServerConnector()
-
-