@Consumes(value="application/json")
@Path(value="/tokens/{token}")
public interface TokenApi
Modifier and Type | Method and Description |
---|---|
Token |
get(String token)
Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
|
User |
getUserOfToken(String token)
Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
|
boolean |
isValid(String token)
Validate a token.
|
Set<Endpoint> |
listEndpointsForToken(String token)
List all endpoints for a token
NOTE: currently not working in openstack ( https://bugs.launchpad.net/keystone/+bug/988672 )
|
@Named(value="token:get") @GET @Nullable Token get(@PathParam(value="token") String token)
@Named(value="token:getuser") @GET @Nullable User getUserOfToken(@PathParam(value="token") String token)
@Named(value="token:valid") @HEAD boolean isValid(@PathParam(value="token") String token)
@Named(value="token:listEndpoints") @GET @Path(value="/endpoints") Set<Endpoint> listEndpointsForToken(@PathParam(value="token") String token)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.