Class TokenServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v3.internal.BaseIdentityServices
-
- org.openstack4j.openstack.identity.v3.internal.TokenServiceImpl
-
- All Implemented Interfaces:
TokenService,RestService
public class TokenServiceImpl extends BaseIdentityServices implements TokenService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description TokenServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
get
public Token get(String tokenId)
Description copied from interface:TokenServiceValidates and shows information for a token.- Specified by:
getin interfaceTokenService- 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:TokenServiceValidates a token.- Specified by:
checkin interfaceTokenService- 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:TokenServiceRevokes a token.- Specified by:
deletein interfaceTokenService- 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:TokenServiceGet service catalog for specified token- Specified by:
getServiceCatalogin interfaceTokenService- 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:TokenServiceGet available project scopes for specified token- Specified by:
getProjectScopesin interfaceTokenService- 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:TokenServiceGet available domain scopes for specified token- Specified by:
getDomainScopesin interfaceTokenService- Parameters:
tokenId- the identifier of the token in question- Returns:
- list of domains that are available to be scoped to
-
-