Class XAdESCounterSignatureParameters
java.lang.Object
eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<TP>
eu.europa.esig.dss.AbstractSignatureParameters<XAdESTimestampParameters>
eu.europa.esig.dss.xades.XAdESSignatureParameters
eu.europa.esig.dss.xades.signature.XAdESCounterSignatureParameters
- All Implemented Interfaces:
SerializableCounterSignatureParameters,SerializableSignatureParameters,Serializable
public class XAdESCounterSignatureParameters
extends XAdESSignatureParameters
implements SerializableCounterSignatureParameters
Parameters for a XAdES counter-signature creation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.europa.esig.dss.xades.XAdESSignatureParameters
XAdESSignatureParameters.XPathElementPlacement -
Field Summary
Fields inherited from class eu.europa.esig.dss.AbstractSignatureParameters
contextFields inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
archiveTimestampParameters, contentTimestampParameters, signatureTimestampParameters -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionReturns a canonicalization method used for a counter signed SignatureValueThe ID of xades:SignedProperties is contained in the signed content of the xades Signature.Returns Id of a signature that needs to be counter signedvoidsetCounterSignatureCanonicalizationMethod(String counterSignatureCanonicalizationMethod) Sets a canonicalization method used for a counter signed SignatureValuevoidsetSignatureIdToCounterSign(String signatureId) Sets the Id of a signature to be counter signed NOTE: The id shall represent the DSS (hash-based) id of a signature or a provided id in the signature document, when available (i.e.Methods inherited from class eu.europa.esig.dss.xades.XAdESSignatureParameters
getArchiveTimestampParameters, getContentTimestampParameters, getContext, getKeyInfoCanonicalizationMethod, getObjects, getReferences, getRootDocument, getSignatureTimestampParameters, getSignedAdESObject, getSignedInfoCanonicalizationMethod, getSignedPropertiesCanonicalizationMethod, getSigningCertificateDigestMethod, getTokenReferencesDigestAlgorithm, getXades141Namespace, getXadesNamespace, getXmldsigNamespace, getXPathElementPlacement, getXPathLocationString, isAddX509SubjectName, isEmbedXML, isEn319132, isManifestSignature, isPrettyPrint, isSignKeyInfo, reinit, setAddX509SubjectName, setEmbedXML, setEn319132, setKeyInfoCanonicalizationMethod, setManifestSignature, setObjects, setPrettyPrint, setReferences, setRootDocument, setSignatureLevel, setSignedAdESObject, setSignedInfoCanonicalizationMethod, setSignedPropertiesCanonicalizationMethod, setSigningCertificateDigestMethod, setSignKeyInfo, setTokenReferencesDigestAlgorithm, setXades141Namespace, setXadesNamespace, setXmldsigNamespace, setXPathElementPlacement, setXPathLocationStringMethods inherited from class eu.europa.esig.dss.AbstractSignatureParameters
getCertificateChain, getContentTimestamps, getDetachedContents, getSignedData, getSigningCertificate, setCertificateChain, setCertificateChain, setContentTimestamps, setDetachedContents, setSignedData, setSigningCertificateMethods inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
bLevel, equals, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getReferenceDigestAlgorithm, getSignatureAlgorithm, getSignatureLevel, getSignaturePackaging, hashCode, isCheckCertificateRevocation, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, isSignWithNotYetValidCertificate, setArchiveTimestampParameters, setBLevelParams, setCheckCertificateRevocation, setContentTimestampParameters, setDigestAlgorithm, setEncryptionAlgorithm, setGenerateTBSWithoutCertificate, setMaskGenerationFunction, setReferenceDigestAlgorithm, setSignaturePackaging, setSignatureTimestampParameters, setSignWithExpiredCertificate, setSignWithNotYetValidCertificate, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.model.SerializableSignatureParameters
bLevel, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getSignatureAlgorithm, getSigningCertificate, isCheckCertificateRevocation, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, isSignWithNotYetValidCertificate
-
Constructor Details
-
XAdESCounterSignatureParameters
public XAdESCounterSignatureParameters()Default constructor instantiating object with null values
-
-
Method Details
-
getSignatureIdToCounterSign
Description copied from interface:SerializableCounterSignatureParametersReturns Id of a signature that needs to be counter signed- Specified by:
getSignatureIdToCounterSignin interfaceSerializableCounterSignatureParameters- Returns:
Stringsignature id
-
setSignatureIdToCounterSign
Description copied from interface:SerializableCounterSignatureParametersSets the Id of a signature to be counter signed NOTE: The id shall represent the DSS (hash-based) id of a signature or a provided id in the signature document, when available (i.e. XML Id for a XAdES signature)- Specified by:
setSignatureIdToCounterSignin interfaceSerializableCounterSignatureParameters- Parameters:
signatureId-Stringid of a signature to be counter signed
-
getCounterSignatureCanonicalizationMethod
Returns a canonicalization method used for a counter signed SignatureValue- Returns:
Stringcanonicalization method to use
-
setCounterSignatureCanonicalizationMethod
public void setCounterSignatureCanonicalizationMethod(String counterSignatureCanonicalizationMethod) Sets a canonicalization method used for a counter signed SignatureValue- Parameters:
counterSignatureCanonicalizationMethod-Stringcanonicalization method to use
-
getDeterministicId
Description copied from class:XAdESSignatureParametersThe ID of xades:SignedProperties is contained in the signed content of the xades Signature. We must create this ID in a deterministic way.- Overrides:
getDeterministicIdin classXAdESSignatureParameters- Returns:
- the unique ID for the current signature
-