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));
 
   48            } 
catch (\Exception $e) {
 
   50                    'Validation with key "#%d" failed with exception: %s',
 
   59        if ($lastException !== 
null) {
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
validateElementWithKeys(SignedElement $element, $pemCandidates)
BC compatible version of the signature check.
__construct(LoggerInterface $logger)
Describes a logger instance.
Interface \SAML2\Validator\Responsible.
validate(XMLSecurityKey $key)
Validate this element against a public key.