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
context
Fields inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
archiveTimestampParameters, contentTimestampParameters, signatureTimestampParameters
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a canonicalization method used for a counter-signed SignatureValueThe deterministic identifier used for unique identification of a created signature (used in XAdES and PAdES).Returns Id of a signature that needs to be counter signedint
hashCode()
void
setCounterSignatureCanonicalizationMethod
(String counterSignatureCanonicalizationMethod) Sets a canonicalization method used for a counter-signed SignatureValuevoid
setSignatureIdToCounterSign
(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.toString()
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, setXPathLocationString
Methods inherited from class eu.europa.esig.dss.AbstractSignatureParameters
getCertificateChain, getContentTimestamps, getDetachedContents, getSignedData, getSigningCertificate, setCertificateChain, setCertificateChain, setContentTimestamps, setDetachedContents, setSignedData, setSigningCertificate
Methods inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
bLevel, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getReferenceDigestAlgorithm, getSignatureAlgorithm, getSignatureLevel, getSignaturePackaging, isCheckCertificateRevocation, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, isSignWithNotYetValidCertificate, setArchiveTimestampParameters, setBLevelParams, setCheckCertificateRevocation, setContentTimestampParameters, setDigestAlgorithm, setEncryptionAlgorithm, setGenerateTBSWithoutCertificate, setMaskGenerationFunction, setReferenceDigestAlgorithm, setSignaturePackaging, setSignatureTimestampParameters, setSignWithExpiredCertificate, setSignWithNotYetValidCertificate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:SerializableCounterSignatureParameters
Returns Id of a signature that needs to be counter signed- Specified by:
getSignatureIdToCounterSign
in interfaceSerializableCounterSignatureParameters
- Returns:
String
signature id
-
setSignatureIdToCounterSign
Description copied from interface:SerializableCounterSignatureParameters
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. XML Id for a XAdES signature)- Specified by:
setSignatureIdToCounterSign
in interfaceSerializableCounterSignatureParameters
- Parameters:
signatureId
-String
id of a signature to be counter signed
-
getCounterSignatureCanonicalizationMethod
Returns a canonicalization method used for a counter-signed SignatureValue- Returns:
String
canonicalization method to use
-
setCounterSignatureCanonicalizationMethod
public void setCounterSignatureCanonicalizationMethod(String counterSignatureCanonicalizationMethod) Sets a canonicalization method used for a counter-signed SignatureValue- Parameters:
counterSignatureCanonicalizationMethod
-String
canonicalization method to use
-
getDeterministicId
Description copied from class:AbstractSignatureParameters
The deterministic identifier used for unique identification of a created signature (used in XAdES and PAdES). The identifier shall be built in a deterministic way to ensure the same value on both method calls during the signature creation.- Overrides:
getDeterministicId
in classAbstractSignatureParameters<XAdESTimestampParameters>
- Returns:
- the unique ID for the current signature or a document
-
toString
- Overrides:
toString
in classAbstractSerializableSignatureParameters<XAdESTimestampParameters>
-
equals
- Overrides:
equals
in classAbstractSerializableSignatureParameters<XAdESTimestampParameters>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractSerializableSignatureParameters<XAdESTimestampParameters>
-