Class JAdESCounterSignatureBuilder
java.lang.Object
eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
eu.europa.esig.dss.jades.signature.JAdESCounterSignatureBuilder
Creates a JAdES Counter signature
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildEmbeddedCounterSignature
(DSSDocument signatureDocument, DSSDocument counterSignature, JAdESCounterSignatureParameters parameters) Embeds and returns the embedded counter signature into the original JAdES signaturegetSignatureValueToBeSigned
(DSSDocument signatureDocument, JAdESCounterSignatureParameters parameters) Extract SignatureValue binaries from the provided JAdES signatureMethods inherited from class eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
assertEtsiUComponentsConsistent, assertJSONSerializationObjectMayBeExtended, assertJWSJsonSerializationObjectValid
-
Constructor Details
-
JAdESCounterSignatureBuilder
public JAdESCounterSignatureBuilder()Default constructor
-
-
Method Details
-
getSignatureValueToBeSigned
public DSSDocument getSignatureValueToBeSigned(DSSDocument signatureDocument, JAdESCounterSignatureParameters parameters) Extract SignatureValue binaries from the provided JAdES signature- Parameters:
signatureDocument
-DSSDocument
to be counter-signedparameters
-JAdESCounterSignatureParameters
- Returns:
DSSDocument
extracted SignatureValue
-
buildEmbeddedCounterSignature
public DSSDocument buildEmbeddedCounterSignature(DSSDocument signatureDocument, DSSDocument counterSignature, JAdESCounterSignatureParameters parameters) Embeds and returns the embedded counter signature into the original JAdES signature- Parameters:
signatureDocument
-DSSDocument
the original document containing the signature to be counter signedcounterSignature
-DSSDocument
the counter signatureparameters
-JAdESCounterSignatureParameters
- Returns:
DSSDocument
original signature enveloping thecounterSignature
in an unprotected header
-