Interface TokenApi
@Consumes("application/json")
@Path("/tokens/{token}")
public interface TokenApi
Provides access to the Keystone Admin API.
-
Method Summary
Modifier and TypeMethodDescriptionValidate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/getUserOfToken
(String token) Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/boolean
Validate a token.listEndpointsForToken
(String token) List all endpoints for a token
-
Method Details
-
get
Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/- Returns:
- the requested information
-
getUserOfToken
Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/- Returns:
- the requested information
-
isValid
Validate a token. This is a high-performance variant of the #getToken() call that does not return any further information.- Returns:
- true if the token is valid
-
listEndpointsForToken
@Named("token:listEndpoints") @GET @Path("/endpoints") Set<Endpoint> listEndpointsForToken(@PathParam("token") String token) List all endpoints for a token NOTE: currently not working in openstack ( https://bugs.launchpad.net/keystone/+bug/988672 )- Returns:
- the set of endpoints
-