public class AOXAdESTriPhaseSigner
extends java.lang.Object
implements es.gob.afirma.core.signers.AOSigner
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COUNTERSIGN_TARGET_LEAFS
Valor para la configuración de la contrafirma de nodos hoja.
|
static java.lang.String |
COUNTERSIGN_TARGET_TREE
Valor para la configuración de la contrafirma de todos los nodos del árbol.
|
static java.lang.String |
DSIGNNS
URI que define el espacio de nombres de firma XMLdSig (Compatible XAdES).
|
static java.lang.String |
SIGNATURE_TAG
Etiqueta de los nodos firma de los XML firmados.
|
Constructor and Description |
---|
AOXAdESTriPhaseSigner()
Construye un manejador de firmas XAdES trifásicas.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
cosign(byte[] data,
byte[] sign,
java.lang.String algorithm,
java.security.PrivateKey key,
java.security.cert.Certificate[] certChain,
java.util.Properties xParams) |
byte[] |
cosign(byte[] sign,
java.lang.String algorithm,
java.security.PrivateKey key,
java.security.cert.Certificate[] certChain,
java.util.Properties xParams) |
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[] certChain,
java.util.Properties xParams) |
byte[] |
getData(byte[] sign) |
java.lang.String |
getSignedName(java.lang.String originalName,
java.lang.String inText) |
es.gob.afirma.core.util.tree.AOTreeModel |
getSignersStructure(byte[] sign,
boolean asSimpleSignInfo) |
es.gob.afirma.core.signers.AOSignInfo |
getSignInfo(byte[] sign) |
boolean |
isSign(byte[] sign) |
boolean |
isValidDataFile(byte[] data) |
byte[] |
sign(byte[] data,
java.lang.String algorithm,
java.security.PrivateKey key,
java.security.cert.Certificate[] certChain,
java.util.Properties xParams) |
public static final java.lang.String DSIGNNS
public static final java.lang.String SIGNATURE_TAG
public static final java.lang.String COUNTERSIGN_TARGET_LEAFS
public static final java.lang.String COUNTERSIGN_TARGET_TREE
public AOXAdESTriPhaseSigner()
public byte[] sign(byte[] data, java.lang.String algorithm, java.security.PrivateKey key, java.security.cert.Certificate[] certChain, java.util.Properties xParams) throws es.gob.afirma.core.AOException
sign
in interface es.gob.afirma.core.signers.AOSimpleSigner
es.gob.afirma.core.AOException
public final byte[] getData(byte[] sign)
getData
in interface es.gob.afirma.core.signers.AOSigner
public byte[] cosign(byte[] data, byte[] sign, java.lang.String algorithm, java.security.PrivateKey key, java.security.cert.Certificate[] certChain, java.util.Properties xParams) throws es.gob.afirma.core.AOException
cosign
in interface es.gob.afirma.core.signers.AOCoSigner
es.gob.afirma.core.AOException
public byte[] cosign(byte[] sign, java.lang.String algorithm, java.security.PrivateKey key, java.security.cert.Certificate[] certChain, java.util.Properties xParams) throws es.gob.afirma.core.AOException
cosign
in interface es.gob.afirma.core.signers.AOCoSigner
es.gob.afirma.core.AOException
public 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[] certChain, java.util.Properties xParams) throws es.gob.afirma.core.AOException
countersign
in interface es.gob.afirma.core.signers.AOCounterSigner
es.gob.afirma.core.AOException
public final es.gob.afirma.core.util.tree.AOTreeModel getSignersStructure(byte[] sign, boolean asSimpleSignInfo)
getSignersStructure
in interface es.gob.afirma.core.signers.AOSigner
public boolean isSign(byte[] sign)
isSign
in interface es.gob.afirma.core.signers.AOSigner
public boolean isValidDataFile(byte[] data)
isValidDataFile
in interface es.gob.afirma.core.signers.AOSigner
public java.lang.String getSignedName(java.lang.String originalName, java.lang.String inText)
getSignedName
in interface es.gob.afirma.core.signers.AOSigner
public es.gob.afirma.core.signers.AOSignInfo getSignInfo(byte[] sign)
getSignInfo
in interface es.gob.afirma.core.signers.AOSigner