Class XAdESLevelBaselineB
java.lang.Object
eu.europa.esig.dss.xades.signature.XAdESLevelBaselineB
-
Constructor Summary
ConstructorDescriptionXAdESLevelBaselineB
(CertificateVerifier certificateVerifier) The default constructor for XAdESLevelBaselineB. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getDataToSign
(DSSDocument dssDocument, XAdESSignatureParameters parameters) Returns the canonicalized ds:SignedInfo XML segment under the form of InputStreamsignDocument
(DSSDocument document, XAdESSignatureParameters parameters, byte[] signatureValue) Adds the signature value to the signature.
-
Constructor Details
-
XAdESLevelBaselineB
The default constructor for XAdESLevelBaselineB.- Parameters:
certificateVerifier
- the certificate verifier
-
-
Method Details
-
getDataToSign
public byte[] getDataToSign(DSSDocument dssDocument, XAdESSignatureParameters parameters) throws DSSException Returns the canonicalized ds:SignedInfo XML segment under the form of InputStream- Parameters:
dssDocument
- The original dssDocument to sign.parameters
- set of the driving signing parameters- Returns:
- bytes the digest to signed
- Throws:
DSSException
- if an error occurred
-
signDocument
public DSSDocument signDocument(DSSDocument document, XAdESSignatureParameters parameters, byte[] signatureValue) throws DSSException Adds the signature value to the signature.- Specified by:
signDocument
in interfaceSignatureProfile
- Parameters:
document
- the original document to sign.parameters
- set of the driving signing parameterssignatureValue
- array of bytes representing the signature value.- Returns:
- the document with the signature
- Throws:
DSSException
- if an error occurred
-