public class AOCMSMultiEnveloper
extends java.lang.Object
Constructor and Description |
---|
AOCMSMultiEnveloper() |
Modifier and Type | Method and Description |
---|---|
byte[] |
cosign(byte[] data,
byte[] sign,
java.lang.String algorithm,
java.security.KeyStore.PrivateKeyEntry keyEntry,
java.util.Properties xParams)
Cofirma un sobre digital CMS.
|
byte[] |
cosign(byte[] sign,
java.lang.String algorithm,
java.security.KeyStore.PrivateKeyEntry keyEntry)
Cofirma un sobre digital CMS.
|
void |
setSignatureAlgorithm(java.lang.String algorithm)
Algoritmo de firma que se utilizará internamente en el sobre.
|
public byte[] cosign(byte[] data, byte[] sign, java.lang.String algorithm, java.security.KeyStore.PrivateKeyEntry keyEntry, java.util.Properties xParams) throws es.gob.afirma.core.AOException
data
- Datos contenidos en el sobre digital a cofirmarsign
- Sobre digitalalgorithm
- Algoritmo de firmakeyEntry
- Entrada de clave privada a usar para la firmaxParams
- Parámetros adicionales. Únicamente se lee precalculatedHashAlgorithmes.gob.afirma.core.AOException
- Si ocurre cualquier problema durante el procesopublic byte[] cosign(byte[] sign, java.lang.String algorithm, java.security.KeyStore.PrivateKeyEntry keyEntry) throws es.gob.afirma.core.AOException
sign
- Sobre digital CMS ya firmadoalgorithm
- Algoritmo de firma a usarkeyEntry
- ENtrada de clave privada para la firmaes.gob.afirma.core.AOException
- Si ocurre cualquier problema durante el procesopublic void setSignatureAlgorithm(java.lang.String algorithm)
algorithm
- Algoritmo de firma.