diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-02-01 13:05:38 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-02-12 22:32:51 -0500 |
commit | af5d06d241b33cea3a9e6b54ead00436fb2d5edc (patch) | |
tree | 01341b098eecc7acb7579061cf708b8b309c3188 /base/common/src/com/netscape/certsrv/key/KeyRequestResource.java | |
parent | 12bd85dc50052107e5dccff56f4110b133aafdc1 (diff) | |
download | pki-af5d06d241b33cea3a9e6b54ead00436fb2d5edc.tar.gz pki-af5d06d241b33cea3a9e6b54ead00436fb2d5edc.tar.xz pki-af5d06d241b33cea3a9e6b54ead00436fb2d5edc.zip |
Added authentication method validation.ticket-477-4
A new mechanism has been added to limit the authentication methods that
can be used to invoke the REST methods. The AuthMethodMapping annotation
maps each REST method to a list of allowed authentication methods defined
auth-method.properties. When a client calls a REST method, the AuthMethod-
Interceptor will intercept the call and verify that the client uses an
allowed authentication method.
For security reason, most REST methods that require authentication have been
configured to require client certificate authentication. Authentication using
username and password will only be used to get the installation token from
security domain.
The auth.properties have been renamed to acl.properties since it's used to
store ACL mappings.
Ticket #477
Diffstat (limited to 'base/common/src/com/netscape/certsrv/key/KeyRequestResource.java')
-rw-r--r-- | base/common/src/com/netscape/certsrv/key/KeyRequestResource.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/key/KeyRequestResource.java b/base/common/src/com/netscape/certsrv/key/KeyRequestResource.java index 9f1ffbe02..6fc12d5ee 100644 --- a/base/common/src/com/netscape/certsrv/key/KeyRequestResource.java +++ b/base/common/src/com/netscape/certsrv/key/KeyRequestResource.java @@ -11,10 +11,12 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; import com.netscape.certsrv.acls.ACLMapping; +import com.netscape.certsrv.authentication.AuthMethodMapping; import com.netscape.certsrv.request.RequestId; @Path("agent/keyrequests") @ACLMapping("agent.keyrequests") +@AuthMethodMapping("agent") public interface KeyRequestResource { public final String SYMMETRIC_KEY_TYPE = "symmetricKey"; |