diff --git a/itext.tests/itext.sign.tests/itext/signatures/LtvVerificationTest.cs b/itext.tests/itext.sign.tests/itext/signatures/LtvVerificationTest.cs
index c71bfa692..a8f2bd732 100644
--- a/itext.tests/itext.sign.tests/itext/signatures/LtvVerificationTest.cs
+++ b/itext.tests/itext.sign.tests/itext/signatures/LtvVerificationTest.cs
@@ -42,7 +42,7 @@ namespace iText.Signatures {
private const String SIG_FIELD_NAME = "Signature1";
- private const String CRL_DISTRIBUTION_POINT = "https://example.com";
+ private const String CRL_DISTRIBUTION_POINT = "https://itextpdf.com";
private static readonly String CERT_FOLDER_PATH = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
.CurrentContext.TestDirectory) + "/resources/itext/signatures/certs/";
@@ -312,136 +312,136 @@ namespace iText.Signatures {
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningOcspCrlYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.OCSP_CRL, LtvVerification.CertificateInclusion.YES, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningOcspYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.OCSP, LtvVerification.CertificateInclusion.YES, false);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningCrlYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.CRL, LtvVerification.CertificateInclusion.YES, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningOcspOptionalCrlYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.OCSP_OPTIONAL_CRL, LtvVerification.CertificateInclusion.YES, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningOcspCrlNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.OCSP_CRL, LtvVerification.CertificateInclusion.NO, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningOcspNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.OCSP, LtvVerification.CertificateInclusion.NO, false);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningCrlNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.CRL, LtvVerification.CertificateInclusion.NO, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameSigningOcspOptionalCrlNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.SIGNING_CERTIFICATE
, LtvVerification.Level.OCSP_OPTIONAL_CRL, LtvVerification.CertificateInclusion.NO, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
public virtual void ValidateSigNameWholeChainOcspCrlYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.OCSP_CRL, LtvVerification.CertificateInclusion.YES, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
public virtual void ValidateSigNameWholeChainOcspOptionalCrlYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.OCSP_OPTIONAL_CRL, LtvVerification.CertificateInclusion.YES, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameWholeChainOcspYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.OCSP, LtvVerification.CertificateInclusion.YES, false);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
public virtual void ValidateSigNameWholeChainCrlYesTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.CRL, LtvVerification.CertificateInclusion.YES, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
public virtual void ValidateSigNameWholeChainOcspCrlNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.OCSP_CRL, LtvVerification.CertificateInclusion.NO, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
public virtual void ValidateSigNameWholeChainOcspOptionalCrlNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.OCSP_OPTIONAL_CRL, LtvVerification.CertificateInclusion.NO, true);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
public virtual void ValidateSigNameWholeChainOcspNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.OCSP, LtvVerification.CertificateInclusion.NO, false);
}
[NUnit.Framework.Test]
- [LogMessage("Added CRL url: https://example.com", LogLevel = LogLevelConstants.INFO)]
- [LogMessage("Checking CRL: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
- [LogMessage("Added CRL found at: https://example.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL url: https://itextpdf.com", LogLevel = LogLevelConstants.INFO)]
+ [LogMessage("Checking CRL: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
+ [LogMessage("Added CRL found at: https://itextpdf.com", LogLevel = LogLevelConstants.INFO, Count = 2)]
public virtual void ValidateSigNameWholeChainCrlNoTest() {
ValidateOptionLevelInclusion(CRL_DISTRIBUTION_POINT, LtvVerification.CertificateOption.WHOLE_CHAIN, LtvVerification.Level
.CRL, LtvVerification.CertificateInclusion.NO, true);
diff --git a/itext/itext.sign/itext/signatures/validation/xml/IDefaultXmlHandler.cs b/itext/itext.sign/itext/signatures/validation/xml/IDefaultXmlHandler.cs
index 8f92161d6..5eb203671 100644
--- a/itext/itext.sign/itext/signatures/validation/xml/IDefaultXmlHandler.cs
+++ b/itext/itext.sign/itext/signatures/validation/xml/IDefaultXmlHandler.cs
@@ -24,11 +24,25 @@ using System;
using System.Collections.Generic;
namespace iText.Signatures.Validation.Xml {
+ /// Interface for handling XML elements during SAX processing.
public interface IDefaultXmlHandler {
+ /// Called when a start element is encountered in the XML document.
+ /// the namespace URI of the element
+ /// the local name of the element
+ /// the qualified name of the element
+ /// a map of attributes associated with the element
void StartElement(String uri, String localName, String qName, Dictionary attributes);
+ /// Called when an end element is encountered in the XML document.
+ /// the namespace URI of the element
+ /// the local name of the element
+ /// the qualified name of the element
void EndElement(String uri, String localName, String qName);
+ /// Called when character data is encountered within an element.
+ /// the character array containing the data
+ /// the start index of the data in the array
+ /// the length of the data
void Characters(char[] ch, int start, int length);
}
}
diff --git a/port-hash b/port-hash
index 354872a78..4535e8953 100644
--- a/port-hash
+++ b/port-hash
@@ -1 +1 @@
-3e0301e80c4c333f7b3927d20c25714e117032b9
+4fa42c3e8a93f076b8d0ce7d31cfd88704348ac4