Class ASiCWithCAdESSignatureExtension

java.lang.Object
eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESSignatureExtension
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ASiCWithCAdESLevelBaselineLTA

public class ASiCWithCAdESSignatureExtension extends Object implements Serializable
This class is used to extend an ASiC with CAdES signature
See Also:
  • Field Details

    • certificateVerifier

      protected final CertificateVerifier certificateVerifier
      The CertificateVerifier used for a certificate chain validation
    • tspSource

      protected final TSPSource tspSource
      The TSPSource to use for timestamp requests
  • Constructor Details

  • Method Details

    • extend

      public ASiCContent extend(ASiCContent asicContent, CAdESSignatureParameters parameters)
      This method is used to extend signatures within the ASiCContent
      Parameters:
      asicContent - ASiCContent
      parameters - CAdESSignatureParameters
      Returns:
      ASiCContent with extended signature documents
    • getReferenceDigestAlgorithmOrDefault

      protected DigestAlgorithm getReferenceDigestAlgorithmOrDefault(CAdESSignatureParameters params)
      Returns params.referenceDigestAlgorithm if exists, params.digestAlgorithm otherwise
      Parameters:
      params - CAdESSignatureParameters
      Returns:
      DigestAlgorithm
    • extensionRequired

      protected boolean extensionRequired(CAdESSignatureParameters parameters, boolean coveredByManifest)
      Checks whether the signature extension is required for the particular document
      Parameters:
      parameters - CAdESSignatureParameters
      coveredByManifest - defines whether the signature document is covered by an archive manifest
      Returns:
      TRUE if the signature extension is required, FALSE otherwise
    • assertExtendSignaturePossible

      protected void assertExtendSignaturePossible(CAdESSignatureParameters parameters, boolean coveredByManifest)
      Checks if the signature extension is possible
      Parameters:
      parameters - CAdESSignatureParameters
      coveredByManifest - defines whether the signature document is covered by an archive manifest
    • isCoveredByManifest

      protected boolean isCoveredByManifest(ASiCContent asicContent, DSSDocument signature)
      Verifies whether the signature document is covered by an Archive Manifest
      Parameters:
      asicContent - ASiCContent
      signature - DSSDocument
      Returns:
      TRUE if the signature is covered by an archive manifest, FALSE otherwise