Class AbstractJAdESBuilder

java.lang.Object
eu.europa.esig.dss.jades.signature.AbstractJAdESBuilder
All Implemented Interfaces:
JAdESBuilder
Direct Known Subclasses:
JAdESCompactBuilder, JAdESSerializationBuilder

public abstract class AbstractJAdESBuilder extends Object implements JAdESBuilder
Abstract JAdES signature builder
  • Field Details

  • Constructor Details

  • Method Details

    • buildDataToBeSigned

      public ToBeSigned buildDataToBeSigned()
      Description copied from interface: JAdESBuilder
      Builds data to be signed by incorporating a detached payload when required (see 5.2.8.3 Mechanism ObjectIdByURI)
      Specified by:
      buildDataToBeSigned in interface JAdESBuilder
      Returns:
      String representing the signature data to be signed result
    • incorporateHeader

      protected void incorporateHeader(JWS jws)
      Incorporates Signed Header
      Parameters:
      jws - JWS to populate
    • incorporatePayload

      protected void incorporatePayload(JWS jws)
      Incorporates Payload
      Parameters:
      jws - JWS to populate
    • assertConfigurationValidity

      protected abstract void assertConfigurationValidity(JAdESSignatureParameters signatureParameters)
      Verifies if the given signaturePackaging type is supported Throws an Exception if the configuration is not valid
      Parameters:
      signatureParameters - JAdESSignatureParameters