public interface OperationAuthorizor
Modifier and Type | Method and Description |
---|---|
void |
authorizeCertificateUse(String certificateUser,
org.bouncycastle.cms.SignerId signer)
Method to determine whether a given componentID is allowed to sign an operation with the given certificate.
|
void |
authorizeOperation(String operationType,
org.bouncycastle.cms.SignerId signer)
Authorize an operation based on its signature
|
void authorizeOperation(String operationType, org.bouncycastle.cms.SignerId signer) throws OperationAuthorizationException, UnregisteredPermissionException
operationType
- operationType, the type of operation that should be authorized.signer
- The signer of the request.OperationAuthorizationException
- if the authorization fails.UnregisteredPermissionException
void authorizeCertificateUse(String certificateUser, org.bouncycastle.cms.SignerId signer) throws CertificateUseException
certificateUser
- the componentID of the component that signed the messagesigner
- the signerId of the certificate that signed the messageCertificateUseException
- in case the message has been signed by the wrong user.Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.