Class JAdESCompactBuilder
java.lang.Object
eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
eu.europa.esig.dss.jades.signature.JAdESCompactBuilder
- All Implemented Interfaces:
JAdESBuilder
Builds JWS Compact Signature
-
Field Summary
Fields inherited from class eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
jadesLevelBaselineB, parameters
-
Constructor Summary
ConstructorDescriptionJAdESCompactBuilder
(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 the concatenation of signed header and payload (dataTobeSigned string) in the way : BASE64URL(UTF8(JWS Protected Header)) || '.' || BASE64URL(JWS Payload)Returns MimeType of the produce signature by the builderMethods inherited from class eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
buildDataToBeSigned, incorporateHeader, incorporatePayload
-
Constructor Details
-
JAdESCompactBuilder
public JAdESCompactBuilder(CertificateVerifier certificateVerifier, JAdESSignatureParameters parameters, List<DSSDocument> documentsToSign) The default constructor- Parameters:
certificateVerifier
-CertificateVerifier
parameters
-JAdESSignatureParameters
documentsToSign
- a list ofDSSDocument
s to sign
-
-
Method Details
-
build
Builds the concatenation of signed header and payload (dataTobeSigned string) in the way : BASE64URL(UTF8(JWS Protected Header)) || '.' || BASE64URL(JWS Payload)- Parameters:
signatureValue
-SignatureValue
to add to the signature- Returns:
DSSDocument
representing the concatenated signature
-
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
-