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

      protected JAdESExtensionBuilder()
      Default constructor
  • Method Details

    • assertEtsiUComponentsConsistent

      protected void assertEtsiUComponentsConsistent(JWS jws, JAdESSignatureParameters signatureParameters)
      Checks if the type of etsiU components is consistent
      Parameters:
      jws - JWS to check
      signatureParameters - JAdESSignatureParameters
    • assertEtsiUComponentsConsistent

      protected boolean assertEtsiUComponentsConsistent(JWS jws, Boolean isBase64UrlEtsiUComponents)
      Checks if the type of etsiU components is consistent and returns the target encoding
      Parameters:
      jws - JWS to check
      isBase64UrlEtsiUComponents - if the new component shall be base64url encoded
      Returns:
      TRUE if the etsiU parameters shall be base64url encoded, FALSE otherwise
    • assertJWSJsonSerializationObjectValid

      protected void assertJWSJsonSerializationObjectValid(JWSJsonSerializationObject jwsJsonSerializationObject)
      Checks if the jwsJsonSerializationObject is valid and can be extended
      Parameters:
      jwsJsonSerializationObject - JWSJsonSerializationObject to check
    • assertJSONSerializationObjectMayBeExtended

      protected void assertJSONSerializationObjectMayBeExtended(JWSJsonSerializationObject jwsJsonSerializationObject)
      Checks if the given jwsJsonSerializationObject can be extended
      Parameters:
      jwsJsonSerializationObject - JWSJsonSerializationObject to check