Package eu.europa.esig.dss.xades
Class TrustedListSignatureParametersBuilder
java.lang.Object
eu.europa.esig.dss.AbstractSignatureParametersBuilder<XAdESSignatureParameters>
eu.europa.esig.dss.xades.TrustedListSignatureParametersBuilder
- All Implemented Interfaces:
SignatureParametersBuilder<XAdESSignatureParameters>
public class TrustedListSignatureParametersBuilder
extends AbstractSignatureParametersBuilder<XAdESSignatureParameters>
Creates Signature parameters for a Trusted List creation
NOTE: the same instance of SignatureParameters shall be used on calls
DocumentSignatureService.getDataToSign(...)
and DocumentSignatureService.signDocument(...)
-
Constructor Summary
ConstructorDescriptionTrustedListSignatureParametersBuilder
(CertificateToken signingCertificate, DSSDocument tlXmlDocument) The constructor to build Signature Parameters for a Trusted List signing with respect to ETSI TS 119 612 -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a Signature Parameters instanceprotected XAdESSignatureParameters
Initialize and return empty signature parameterssetReferenceDigestAlgorithm
(DigestAlgorithm digestAlgorithm) Sets an Enveloped ReferenceDigestAlgorithm
to usesetReferenceId
(String referenceId) Sets an Enveloped Reference Id to use Default: "ref-enveloped-signature"Methods inherited from class eu.europa.esig.dss.AbstractSignatureParametersBuilder
bLevel, setBLevelParams
-
Constructor Details
-
TrustedListSignatureParametersBuilder
public TrustedListSignatureParametersBuilder(CertificateToken signingCertificate, DSSDocument tlXmlDocument) The constructor to build Signature Parameters for a Trusted List signing with respect to ETSI TS 119 612- Parameters:
signingCertificate
-CertificateToken
to be used for a signature creationtlXmlDocument
-DSSDocument
Trusted List XML document to be signed
-
-
Method Details
-
setReferenceId
Sets an Enveloped Reference Id to use Default: "ref-enveloped-signature"- Parameters:
referenceId
-String
reference Id- Returns:
- this builder
-
setReferenceDigestAlgorithm
public TrustedListSignatureParametersBuilder setReferenceDigestAlgorithm(DigestAlgorithm digestAlgorithm) Sets an Enveloped ReferenceDigestAlgorithm
to use- Parameters:
digestAlgorithm
-DigestAlgorithm
to be used- Returns:
- this builder
-
initParameters
Description copied from class:AbstractSignatureParametersBuilder
Initialize and return empty signature parameters- Specified by:
initParameters
in classAbstractSignatureParametersBuilder<XAdESSignatureParameters>
- Returns:
SP
signature parameters
-
build
Description copied from interface:SignatureParametersBuilder
Creates a Signature Parameters instance- Specified by:
build
in interfaceSignatureParametersBuilder<XAdESSignatureParameters>
- Overrides:
build
in classAbstractSignatureParametersBuilder<XAdESSignatureParameters>
- Returns:
SP
signature parameters
-