33 $lastException = null;
34 foreach ($pemCandidates as
$index => $candidateKey) {
36 $key->loadKey($candidateKey->getCertificate());
44 $this->logger->debug(sprintf(
'Validation with key "#%d" succeeded',
$index));
47 $this->logger->debug(sprintf(
'Validation with key "#%d" failed without exception.',
$index));
49 $this->logger->debug(sprintf(
50 'Validation with key "#%d" failed with exception: %s',
59 if ($lastException !== null) {
validateElementWithKeys(SignedElement $element, $pemCandidates)
BC compatible version of the signature check.
__construct(LoggerInterface $logger)
validate(XMLSecurityKey $key)
Validate this element against a public key.
Create styles array
The data for the language used.
Describes a logger instance.