Interface AuthApi


  • @Consumes("application/json")
    @Path("/auth")
    public interface AuthApi
    Provides access to the Keystone Authentication API.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • Method Detail

      • get

        @Named("token:get")
        @GET
        @Path("/tokens")
        @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).
      • getUserOfToken

        @Named("token:getuser")
        @GET
        @Path("/tokens")
        @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).
      • isValid

        @Named("token:check")
        @HEAD
        @Path("/tokens")
        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.