public class AOCAdESCounterSigner
extends java.lang.Object
implements es.gob.afirma.core.signers.AOCounterSigner
Constructor and Description |
---|
AOCAdESCounterSigner()
Crea un contrafirmador CAdES con el firmador PKCS#1 por defecto.
|
AOCAdESCounterSigner(es.gob.afirma.core.signers.AOSimpleSigner sSigner,
java.util.Date d)
Crea un contrafirmador CAdES con un firmador PKCS#1 específico y una fecha/hora estática.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
countersign(byte[] sign,
java.lang.String algorithm,
es.gob.afirma.core.signers.CounterSignTarget targetType,
java.lang.Object[] targets,
java.security.PrivateKey key,
java.security.cert.Certificate[] cChain,
java.util.Properties xParams) |
public AOCAdESCounterSigner()
public AOCAdESCounterSigner(es.gob.afirma.core.signers.AOSimpleSigner sSigner, java.util.Date d)
sSigner
- Firmador PKCS#1 a usar.d
- Fecha y hora prefijada (se usa esta como atributo CAdES en vez de la del momento exacto de la firma).public final byte[] countersign(byte[] sign, java.lang.String algorithm, es.gob.afirma.core.signers.CounterSignTarget targetType, java.lang.Object[] targets, java.security.PrivateKey key, java.security.cert.Certificate[] cChain, java.util.Properties xParams) throws es.gob.afirma.core.AOException, java.io.IOException
countersign
in interface es.gob.afirma.core.signers.AOCounterSigner
es.gob.afirma.core.AOException
java.io.IOException