Class AbstractJAdESBuilder
java.lang.Object
eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
- All Implemented Interfaces:
JAdESBuilder
- Direct Known Subclasses:
JAdESCompactBuilder
,JAdESSerializationBuilder
Abstract JAdES signature builder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final JAdESLevelBaselineB
The instance of a B-level generator classprotected final JAdESSignatureParameters
Signature parameters -
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractJAdESBuilder
(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, List<DSSDocument> documentsToSign) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
assertConfigurationValidity
(JAdESSignatureParameters signatureParameters) Verifies if the given signaturePackaging type is supported Throws an Exception if the configuration is not validBuilds data to be signed by incorporating a detached payload when required (see 5.2.8.3 Mechanism ObjectIdByURI)protected void
incorporateHeader
(JWS jws) Incorporates Signed Headerprotected void
incorporatePayload
(JWS jws) Incorporates PayloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.jades.signature.JAdESBuilder
build, getMimeType
-
Field Details
-
parameters
Signature parameters -
jadesLevelBaselineB
The instance of a B-level generator class
-
-
Constructor Details
-
AbstractJAdESBuilder
protected AbstractJAdESBuilder(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, List<DSSDocument> documentsToSign) Default constructor- Parameters:
certificateVerifier
-CertificateVerifier
to useparameters
-JAdESSignatureParameters
documentsToSign
- a list ofDSSDocument
s to sign
-
-
Method Details
-
buildDataToBeSigned
Description copied from interface:JAdESBuilder
Builds data to be signed by incorporating a detached payload when required (see 5.2.8.3 Mechanism ObjectIdByURI)- Specified by:
buildDataToBeSigned
in interfaceJAdESBuilder
- Returns:
String
representing the signature data to be signed result
-
incorporateHeader
-
incorporatePayload
-
assertConfigurationValidity
Verifies if the given signaturePackaging type is supported Throws an Exception if the configuration is not valid- Parameters:
signatureParameters
-JAdESSignatureParameters
-