We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e73b3 commit 12c48c0Copy full SHA for 12c48c0
src/XmlSignatureValidator.php
@@ -176,6 +176,10 @@ public function verifyXmlFile(string $filename): bool
176
*/
177
public function verifyXml(string $xmlContent): bool
178
{
179
+ if (!$this->publicKeyId) {
180
+ throw new XmlSignatureValidatorException('No public key provided');
181
+ }
182
+
183
// Read the xml file content
184
$xml = new DOMDocument();
185
$xml->preserveWhiteSpace = true;
tests/test.php
0 commit comments