Class JAdESExtensionBuilder

java.lang.Object
eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
Direct Known Subclasses:
JAdESCounterSignatureBuilder, JAdESLevelBaselineT, JAdESSignaturePolicyStoreBuilder

public abstract class JAdESExtensionBuilder
extends Object
The abstract class allowing the signature extension
  • Constructor Details

    • JAdESExtensionBuilder

      public JAdESExtensionBuilder()
  • Method Details

    • assertEtsiUComponentsConsistent

      protected void assertEtsiUComponentsConsistent​(JWS jws, boolean isBase64UrlEtsiUComponents)
      Checks if the type of etsiU components is consistent
      Parameters:
      jws - JWS to check
      isBase64UrlEtsiUComponents - if the new component shall be base64url encoded
    • toJWSJsonSerializationObjectToExtend

      protected JWSJsonSerializationObject toJWSJsonSerializationObjectToExtend​(DSSDocument document)
      Parses the provided document to JWSJsonSerializationObject Throws an exception if the document cannot be extended
      Parameters:
      document - DSSDocument original document
      Returns:
      JWSJsonSerializationObject
    • assertIsJSONSerializationType

      protected void assertIsJSONSerializationType​(JWSSerializationType jwsSerializationType)
      Checks if the given signature document type is allowed for the extension
      Parameters:
      jwsSerializationType - JWSSerializationType to check