PKCS#7 standard signature.
|
byte[] | signPKCS7 (String keyId, String keyCertId, String certs, int attributes, byte[] content) throws TacException |
| It generates a signature or co-signature following the PKCS#7 standard (Cryptographic Message Syntax Standard).
|
|
◆ signPKCS7()
byte[] signPKCS7 |
( |
String | keyId, |
|
|
String | keyCertId, |
|
|
String | certs, |
|
|
int | attributes, |
|
|
byte[] | content ) throws TacException |
It generates a signature or co-signature following the PKCS#7 standard (Cryptographic Message Syntax Standard).
- Parameters
-
keyId | Name of the key within the HSM that will be used to make the signature. |
keyCertId | Name of the certificate (corresponding to the keyId) within the HSM that will be used in the signature. |
certs | Name of the certificate chain (PKCS#7) or X.509 certificate of the Certificate Authority (corresponding to the keyId) within the HSM that will be used in the signature. |
attributes | Flag containing the subscription options.
|
content | Buffer containing the data to be signed. |
- Return
- PKCS#7 signature (DER format).
- Exceptions
-