Class SignatureExtendingValidator

java.lang.Object
org.digidoc4j.impl.asic.xades.SignatureExtendingValidator

public class SignatureExtendingValidator extends Object
  • Constructor Details

    • SignatureExtendingValidator

      public SignatureExtendingValidator(Collection<DataFile> dataFiles, Configuration configuration)
      Create signature validator for an ASiC container
      Parameters:
      dataFiles - data files in the container
      configuration - the configuration used by the container
  • Method Details

    • validateExtendability

      public void validateExtendability(Signature signature, SignatureProfile targetProfile)
      Checks whether the signature can be extended to target profile. Both DigiDoc4j's and DSS's validations must pass to extend a signature.
      Parameters:
      signature - signature to extend
      targetProfile - target profile
      Throws:
      DigiDoc4JException - if the signature can not be extended to target profile
      See Also:
    • validateProfileExtendability

      public static void validateProfileExtendability(List<Signature> signatures, SignatureProfile targetProfile)
      Checks whether DigiDoc4j's rules allow all the signatures to be extended to target profile.
      Parameters:
      signatures - signatures to extend
      targetProfile - target profile
      Throws:
      NotSupportedException - if at least 1 signature can not be extended to target profile
      See Also: