Class JAdESSerializationBuilder
java.lang.Object
eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
eu.europa.esig.dss.jades.signature.JAdESSerializationBuilder
-
Field Summary
Fields inherited from class eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
jadesLevelBaselineB, parameters
-
Constructor Summary
ConstructorDescriptionJAdESSerializationBuilder
(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, JWSJsonSerializationObject jwsJsonSerializationObject) The constructor from an existing signatureJAdESSerializationBuilder
(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, List<DSSDocument> documentsToSign) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertConfigurationValidity
(JAdESSignatureParameters signatureParameters) Verifies if the given signaturePackaging type is supported Throws an Exception if the configuration is not validbuild
(SignatureValue signatureValue) Builds a signatureReturns MimeType of the produce signature by the builderMethods inherited from class eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
buildDataToBeSigned, incorporateHeader, incorporatePayload
-
Constructor Details
-
JAdESSerializationBuilder
public JAdESSerializationBuilder(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, List<DSSDocument> documentsToSign) The default constructor- Parameters:
certificateVerifier
-CertificateVerifier
parameters
-JAdESSignatureParameters
documentsToSign
- a list ofDSSDocument
s to sign
-
JAdESSerializationBuilder
public JAdESSerializationBuilder(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, JWSJsonSerializationObject jwsJsonSerializationObject) The constructor from an existing signature- Parameters:
certificateVerifier
-CertificateVerifier
parameters
-JAdESSignatureParameters
jwsJsonSerializationObject
-JWSJsonSerializationObject
representing the existing signature(s)
-
-
Method Details
-
build
Description copied from interface:JAdESBuilder
Builds a signature- Parameters:
signatureValue
-SignatureValue
to add to the signature- Returns:
DSSDocument
containing JWS binaries
-
getMimeType
Description copied from interface:JAdESBuilder
Returns MimeType of the produce signature by the builder- Returns:
MimeType
-
assertConfigurationValidity
Description copied from class:AbstractJAdESBuilder
Verifies if the given signaturePackaging type is supported Throws an Exception if the configuration is not valid- Specified by:
assertConfigurationValidity
in classAbstractJAdESBuilder
- Parameters:
signatureParameters
-JAdESSignatureParameters
-