diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-10-10 04:38:05 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-08 11:20:05 -0500 |
commit | cb209df95c4dee11f2a912e20b417fa3bc41c88f (patch) | |
tree | b50824cdfd3bc4ec3db905b94ef7750d9ff74844 /base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java | |
parent | 906acfd2c82d195a7c55a2af7c4d7abe8ed2655a (diff) | |
download | pki-cb209df95c4dee11f2a912e20b417fa3bc41c88f.tar.gz pki-cb209df95c4dee11f2a912e20b417fa3bc41c88f.tar.xz pki-cb209df95c4dee11f2a912e20b417fa3bc41c88f.zip |
Added ACLInterceptor.
Previously ACL checking was done in PKIRealm by matching the URL.
This code has been replaced by ACLInterceptor which will intercept
RESTEasy method invocations. This allows more precise mapping of
REST methods to ACL entries in acl.ldif.
Ticket #287
Diffstat (limited to 'base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java')
-rw-r--r-- | base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java b/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java index 1805d15c4..b34d9fe13 100644 --- a/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java +++ b/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java @@ -23,6 +23,8 @@ import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; +import com.netscape.certsrv.acls.ACLMapping; + /** * @author alee */ @@ -32,6 +34,7 @@ public interface SecurityDomainResource { @GET @Path("installToken") @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + @ACLMapping("securityDomain.installToken") public InstallToken getInstallToken( @QueryParam("hostname") String hostname, @QueryParam("subsystem") String subsystem); |