28 parent::__construct($logger);
41 $this->configuredKeys = $this->keyLoader->extractPublicKeys($configuration);
43 return !!count($this->configuredKeys);
57 $pemCandidates = $this->configuredKeys->filter(
function (
Key $key) use (
$logger) {
58 if (!$key instanceof
X509) {
59 $logger->debug(sprintf(
'Skipping unknown key type: "%s"', $key[
'type']));
65 if (!count($pemCandidates)) {
66 $this->logger->debug(
'No configured X509 certificate found to verify the signature with');
validateElementWithKeys(SignedElement $element, $pemCandidates)
BC compatible version of the signature check.
CertificateProvider interface.
canValidate(SignedElement $signedElement, CertificateProvider $configuration)
Simple DTO wrapper for (X509) keys.
__construct(LoggerInterface $logger, KeyLoader $keyLoader)
Describes a logger instance.
hasValidSignature(SignedElement $signedElement, CertificateProvider $configuration)