Class TokenServiceImpl

    • Constructor Detail

      • TokenServiceImpl

        public TokenServiceImpl()
    • Method Detail

      • get

        public Token get​(String tokenId)
        Description copied from interface: TokenService
        Validates and shows information for a token.
        Specified by:
        get in interface TokenService
        Parameters:
        tokenId - the identifier of the token that is subject to be checked
        Returns:
        the token if valid
      • check

        public ActionResponse check​(String tokenId)
        Description copied from interface: TokenService
        Validates a token.
        Specified by:
        check in interface TokenService
        Parameters:
        tokenId - the identifier of the token that is subject to be checked
        Returns:
        the ActionResponse
      • delete

        public ActionResponse delete​(String tokenId)
        Description copied from interface: TokenService
        Revokes a token.
        Specified by:
        delete in interface TokenService
        Parameters:
        tokenId - the identifier of the token that is going to be deleted
        Returns:
        the ActionResponse
      • getServiceCatalog

        public List<? extends Service> getServiceCatalog​(String tokenId)
        Description copied from interface: TokenService
        Get service catalog for specified token
        Specified by:
        getServiceCatalog in interface TokenService
        Parameters:
        tokenId - the identifier of the token, of which the catalog of services is requested
        Returns:
        the service catalog for the token provided in the request
      • getProjectScopes

        public List<? extends Project> getProjectScopes​(String tokenId)
        Description copied from interface: TokenService
        Get available project scopes for specified token
        Specified by:
        getProjectScopes in interface TokenService
        Parameters:
        tokenId - the identifier of the token in question
        Returns:
        list of projects that are available to be scoped to
      • getDomainScopes

        public List<? extends Domain> getDomainScopes​(String tokenId)
        Description copied from interface: TokenService
        Get available domain scopes for specified token
        Specified by:
        getDomainScopes in interface TokenService
        Parameters:
        tokenId - the identifier of the token in question
        Returns:
        list of domains that are available to be scoped to