@Consumes(value="application/json")
@Path(value="/auth")
public interface AuthApi
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.
|
@Named(value="token:get") @GET @Path(value="/tokens") @Nullable Token get(@PathParam(value="token") String token)
@Named(value="token:getuser") @GET @Path(value="/tokens") @Nullable User getUserOfToken(@PathParam(value="token") String token)
@Named(value="token:check") @HEAD @Path(value="/tokens") boolean isValid(@PathParam(value="token") String token)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.