java.lang.Object
eu.europa.esig.dss.xades.signature.XAdESLevelBaselineB
- All Implemented Interfaces:
SignatureProfile
Contains B level baseline profile for XAdES signature.
-
Constructor Summary
ConstructorsConstructorDescriptionXAdESLevelBaselineB(eu.europa.esig.dss.validation.CertificateVerifier certificateVerifier) The default constructor for XAdESLevelBaselineB. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getDataToSign(eu.europa.esig.dss.model.DSSDocument dssDocument, XAdESSignatureParameters parameters) Returns the canonicalized ds:SignedInfo XML segment under the form of InputStreameu.europa.esig.dss.model.DSSDocumentsignDocument(eu.europa.esig.dss.model.DSSDocument document, XAdESSignatureParameters parameters, byte[] signatureValue) Adds the signature value to the signature.
-
Constructor Details
-
XAdESLevelBaselineB
public XAdESLevelBaselineB(eu.europa.esig.dss.validation.CertificateVerifier certificateVerifier) The default constructor for XAdESLevelBaselineB.- Parameters:
certificateVerifier- the certificate verifier
-
-
Method Details
-
getDataToSign
public byte[] getDataToSign(eu.europa.esig.dss.model.DSSDocument dssDocument, XAdESSignatureParameters parameters) throws eu.europa.esig.dss.model.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:
eu.europa.esig.dss.model.DSSException- if an error occurred
-
signDocument
public eu.europa.esig.dss.model.DSSDocument signDocument(eu.europa.esig.dss.model.DSSDocument document, XAdESSignatureParameters parameters, byte[] signatureValue) throws eu.europa.esig.dss.model.DSSException Adds the signature value to the signature.- Specified by:
signDocumentin 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:
eu.europa.esig.dss.model.DSSException- if an error occurred
-