Class AccessTokenManager


  • public class AccessTokenManager
    extends java.lang.Object
    • 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)