diff options
Diffstat (limited to 'base/common/src/com/netscape/certsrv/key/KeyResource.java')
-rw-r--r-- | base/common/src/com/netscape/certsrv/key/KeyResource.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/key/KeyResource.java b/base/common/src/com/netscape/certsrv/key/KeyResource.java index 78ce15344..5b5bf7a74 100644 --- a/base/common/src/com/netscape/certsrv/key/KeyResource.java +++ b/base/common/src/com/netscape/certsrv/key/KeyResource.java @@ -15,6 +15,7 @@ import org.jboss.resteasy.annotations.ClientResponseType; import com.netscape.certsrv.acls.ACLMapping; import com.netscape.certsrv.authentication.AuthMethodMapping; +import com.netscape.certsrv.dbs.keydb.KeyId; @Path("agent/keys") @@ -38,6 +39,19 @@ public interface KeyResource { @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) public Response getActiveKeyInfo(@PathParam("clientID") String clientID); + @GET + @Path("{id}") + @ClientResponseType(entityType=KeyInfo.class) + @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) + public Response getKeyInfo(@PathParam("id") KeyId id); + + @POST + @Path("{id}") + @ClientResponseType(entityType=Void.class) + @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + public Response modifyKeyStatus(@PathParam("id") KeyId id, + @QueryParam("status") String status); + /** * Used to retrieve a key * @param data |