Interface TokenApi


@Consumes("application/json") @Path("/tokens/{token}") public interface TokenApi
Provides access to the Keystone Admin API.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String token)
    Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
    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.
    List all endpoints for a token
  • Method Details

    • get

      @Named("token:get") @GET @Nullable Token get(@PathParam("token") String token)
      Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
      Returns:
      the requested information
    • getUserOfToken

      @Named("token:getuser") @GET @Nullable User getUserOfToken(@PathParam("token") String token)
      Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
      Returns:
      the requested information
    • isValid

      @Named("token:valid") @HEAD boolean isValid(@PathParam("token") String token)
      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