Interface KeyApi

  • All Superinterfaces:
    AutoCloseable, Closeable

    @Path("/account/keys")
    @Consumes("application/json")
    public interface KeyApi
    extends Closeable
    Provides access to Keys via the REST API.
    See Also:
    , KeyApi
    • Method Detail

      • create

        @Named("key:create")
        @POST
        @Produces("application/json")
        Key create​(String name,
                   String key)
      • get

        @Named("key:get")
        @GET
        @Path("/{id}")
        @Nullable
        Key get​(@PathParam("id")
                int id)
      • get

        @Named("key:get")
        @GET
        @Path("/{fingerprint}")
        @Nullable
        Key get​(@PathParam("fingerprint")
                String fingerprint)
      • update

        @Named("key:update")
        @PUT
        @Produces("application/json")
        @Path("/{id}")
        Key update​(@PathParam("id")
                   int id,
                   String name)
      • update

        @Named("key:update")
        @PUT
        @Produces("application/json")
        @Path("/{fingerprint}")
        Key update​(@PathParam("fingerprint")
                   String fingerprint,
                   String name)
      • delete

        @Named("key:delete")
        @DELETE
        @Path("/{id}")
        void delete​(@PathParam("id")
                    int id)
      • delete

        @Named("key:delete")
        @DELETE
        @Path("/{fingerprint}")
        void delete​(@PathParam("fingerprint")
                    String fingerprint)