Interface KeyApi
-
- All Superinterfaces:
AutoCloseable,Closeable
@Path("/account/keys") @Consumes("application/json") public interface KeyApi extends CloseableProvides access to Keys via the REST API.- See Also:
- ,
KeyApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classKeyApi.ParseKeys
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Keycreate(String name, String key)voiddelete(int id)voiddelete(String fingerprint)Keyget(int id)Keyget(String fingerprint)PagedIterable<Key>list()IterableWithMarker<Key>list(ListOptions options)Keyupdate(int id, String name)Keyupdate(String fingerprint, String name)
-
-
-
Method Detail
-
list
@Named("key:list") @GET PagedIterable<Key> list()
-
list
@Named("key:list") @GET IterableWithMarker<Key> list(ListOptions options)
-
create
@Named("key:create") @POST @Produces("application/json") Key create(String name, String key)
-
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)
-
-