diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-11-13 22:50:17 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-11-14 16:55:01 -0500 |
commit | c694fde37b64d2d5a58f0146e0a8db47bec5be14 (patch) | |
tree | ae2d52fc91b69befb94f35d23f20935651437d44 /base/common/src/com/netscape/certsrv/tps | |
parent | b7716af212ba857f45efa7f1811d92e916abbe26 (diff) | |
download | pki-c694fde37b64d2d5a58f0146e0a8db47bec5be14.tar.gz pki-c694fde37b64d2d5a58f0146e0a8db47bec5be14.tar.xz pki-c694fde37b64d2d5a58f0146e0a8db47bec5be14.zip |
Added ACL for TPS configuration.
New ACL has been added to allow only the administrators to access
TPS configuration.
Ticket #652
Diffstat (limited to 'base/common/src/com/netscape/certsrv/tps')
-rw-r--r-- | base/common/src/com/netscape/certsrv/tps/config/ConfigResource.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/tps/config/ConfigResource.java b/base/common/src/com/netscape/certsrv/tps/config/ConfigResource.java index e1076a48e..21cb3f0b1 100644 --- a/base/common/src/com/netscape/certsrv/tps/config/ConfigResource.java +++ b/base/common/src/com/netscape/certsrv/tps/config/ConfigResource.java @@ -27,11 +27,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("config") +@AuthMethodMapping("config") +@ACLMapping("config.read") public interface ConfigResource { @GET @@ -42,5 +47,6 @@ public interface ConfigResource { @ClientResponseType(entityType=ConfigData.class) @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + @ACLMapping("config.modify") public Response updateConfig(ConfigData configData); } |