Class XAdESLevelBaselineB

java.lang.Object
eu.europa.esig.dss.xades.signature.XAdESLevelBaselineB
All Implemented Interfaces:
SignatureProfile, XAdESSignatureProfile

public class XAdESLevelBaselineB extends Object implements XAdESSignatureProfile
Contains B level baseline profile for XAdES signature.
  • Constructor Summary

    Constructors
    Constructor
    Description
    XAdESLevelBaselineB(eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier)
    The default constructor for XAdESLevelBaselineB.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    getDataToSign(eu.europa.esig.dss.model.DSSDocument dssDocument, XAdESSignatureParameters parameters)
    Returns the canonicalized ds:SignedInfo XML segment under the form of InputStream.
    byte[]
    getDataToSign(List<eu.europa.esig.dss.model.DSSDocument> documents, XAdESSignatureParameters parameters)
    Returns the canonicalized ds:SignedInfo XML segment under the form of InputStream.
    eu.europa.esig.dss.model.DSSDocument
    signDocument(eu.europa.esig.dss.model.DSSDocument document, XAdESSignatureParameters parameters, byte[] signatureValue)
    Adds the signature value to the signature.
    eu.europa.esig.dss.model.DSSDocument
    signDocument(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, XAdESSignatureParameters parameters, byte[] signatureValue)
    Creates a signature of the defines profile for signing a list of documents

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XAdESLevelBaselineB

      public XAdESLevelBaselineB(eu.europa.esig.dss.spi.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. This method is used for signing a document.
      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
    • getDataToSign

      public byte[] getDataToSign(List<eu.europa.esig.dss.model.DSSDocument> documents, XAdESSignatureParameters parameters) throws eu.europa.esig.dss.model.DSSException
      Returns the canonicalized ds:SignedInfo XML segment under the form of InputStream. This method is used for signing multiple documents.
      Parameters:
      documents - The list of original documents 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:
      signDocument in interface SignatureProfile
      Specified by:
      signDocument in interface XAdESSignatureProfile
      Parameters:
      document - the original document to sign.
      parameters - set of the driving signing parameters
      signatureValue - array of bytes representing the signature value.
      Returns:
      the document with the signature
      Throws:
      eu.europa.esig.dss.model.DSSException - if an error occurred
    • signDocument

      public eu.europa.esig.dss.model.DSSDocument signDocument(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, XAdESSignatureParameters parameters, byte[] signatureValue)
      Description copied from interface: XAdESSignatureProfile
      Creates a signature of the defines profile for signing a list of documents
      Specified by:
      signDocument in interface SignatureProfile
      Specified by:
      signDocument in interface XAdESSignatureProfile
      Parameters:
      toSignDocuments - a list of DSSDocuments to be signed
      parameters - XAdESSignatureParameters
      signatureValue - signature value
      Returns:
      DSSDocument signature document