Class XMLDSigValidatorCustom

java.lang.Object
com.labs64.netlicensing.util.XMLDSigValidatorCustom

public class XMLDSigValidatorCustom extends Object
  • Method Details

    • containsSignature

      public static boolean containsSignature(@Nonnull Document aDoc)
      Verify whether Document contains XML signature.
      Parameters:
      aDoc - document to be verified
      Returns:
      true if Document contains XML signature
    • validateSignature

      public static com.helger.xmldsig.XMLDSigValidationResult validateSignature(@Nonnull Document aDoc) throws XMLSignatureException
      Validate XML (imline) signature.
      Parameters:
      aDoc - Document containing inline sign certificate
      Returns:
      XMLDSig validation result
      Throws:
      XMLSignatureException
    • validateSignature

      public static com.helger.xmldsig.XMLDSigValidationResult validateSignature(@Nonnull Document aDoc, Key aKey) throws XMLSignatureException
      Validate XML (detached) signature.
      Parameters:
      aDoc - Document signature
      Returns:
      XMLDSig validation result
      Throws:
      XMLSignatureException