Package org.openstack4j.api.identity.v3
Interface TokenService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
TokenServiceImpl
public interface TokenService extends RestService
Identity V3 Token operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActionResponsecheck(String tokenId)Validates a token.ActionResponsedelete(String tokenId)Revokes a token.Tokenget(String tokenId)Validates and shows information for a token.List<? extends Domain>getDomainScopes(String tokenId)Get available domain scopes for specified tokenList<? extends Project>getProjectScopes(String tokenId)Get available project scopes for specified tokenList<? extends Service>getServiceCatalog(String tokenId)Get service catalog for specified token
-
-
-
Method Detail
-
get
Token get(String tokenId)
Validates and shows information for a token.- Parameters:
tokenId- the identifier of the token that is subject to be checked- Returns:
- the token if valid
-
check
ActionResponse check(String tokenId)
Validates a token.- Parameters:
tokenId- the identifier of the token that is subject to be checked- Returns:
- the ActionResponse
-
delete
ActionResponse delete(String tokenId)
Revokes a token.- Parameters:
tokenId- the identifier of the token that is going to be deleted- Returns:
- the ActionResponse
-
getServiceCatalog
List<? extends Service> getServiceCatalog(String tokenId)
Get service catalog for specified token- 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
List<? extends Project> getProjectScopes(String tokenId)
Get available project scopes for specified token- Parameters:
tokenId- the identifier of the token in question- Returns:
- list of projects that are available to be scoped to
-
-