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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
KeyApi.ParseKeys
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Key
create(String name, String key)
void
delete(int id)
void
delete(String fingerprint)
Key
get(int id)
Key
get(String fingerprint)
PagedIterable<Key>
list()
IterableWithMarker<Key>
list(ListOptions options)
Key
update(int id, String name)
Key
update(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)
-
-