diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-11-13 23:38:25 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-11-14 16:55:06 -0500 |
commit | 815cdd900d29e3cc633f20aea6b82e2db69c04c5 (patch) | |
tree | c96e5ee9104cc62b4dcb60aeb7215f65b162c9b5 /base/common/src/com/netscape/certsrv/tps | |
parent | c694fde37b64d2d5a58f0146e0a8db47bec5be14 (diff) | |
download | pki-815cdd900d29e3cc633f20aea6b82e2db69c04c5.tar.gz pki-815cdd900d29e3cc633f20aea6b82e2db69c04c5.tar.xz pki-815cdd900d29e3cc633f20aea6b82e2db69c04c5.zip |
Added ACL for TPS connections.
New ACL has been added to allow only the administrators to access
TPS connections.
Ticket #652
Diffstat (limited to 'base/common/src/com/netscape/certsrv/tps')
-rw-r--r-- | base/common/src/com/netscape/certsrv/tps/connection/ConnectionResource.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/tps/connection/ConnectionResource.java b/base/common/src/com/netscape/certsrv/tps/connection/ConnectionResource.java index 928dabae7..e1be5c6b4 100644 --- a/base/common/src/com/netscape/certsrv/tps/connection/ConnectionResource.java +++ b/base/common/src/com/netscape/certsrv/tps/connection/ConnectionResource.java @@ -31,11 +31,16 @@ import javax.ws.rs.core.Response; import org.jboss.resteasy.annotations.ClientResponseType; +import com.netscape.certsrv.acls.ACLMapping; +import com.netscape.certsrv.authentication.AuthMethodMapping; + /** * @author Endi S. Dewata */ @Path("connections") +@AuthMethodMapping("connections") +@ACLMapping("connections.read") public interface ConnectionResource { @GET @@ -53,6 +58,7 @@ public interface ConnectionResource { @ClientResponseType(entityType=ConnectionData.class) @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + @ACLMapping("connections.add") public Response addConnection(ConnectionData connectionData); @PUT @@ -60,6 +66,7 @@ public interface ConnectionResource { @ClientResponseType(entityType=ConnectionData.class) @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + @ACLMapping("connections.modify") public Response updateConnection( @PathParam("connectionID") String connectionID, ConnectionData connectionData); @@ -67,5 +74,6 @@ public interface ConnectionResource { @DELETE @Path("{connectionID}") @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + @ACLMapping("connections.remove") public void removeConnection(@PathParam("connectionID") String connectionID); } |