36 foreach ($validators as $validator) {
46 $this->validators[] = $validator;
59 foreach ($this->validators as $validator) {
60 if ($validator->canValidate($signedElement, $configuration)) {
61 $this->logger->debug(sprintf(
62 'Validating the signed element with validator of type "%s"',
66 return $validator->hasValidSignature($signedElement, $configuration);
69 $this->logger->debug(sprintf(
70 'Could not validate the signed element with validator of type "%s"',
76 'No certificates or fingerprints have been configured%s',
77 $configuration->
has(
'entityid') ?
' for "' . $configuration->
get(
'entityid') .
'"' :
''
CertificateProvider interface.
has($key)
Query for whether or not the configuration has a value for the key.
appendValidator(ChainedValidator $validator)
hasValidSignature(SignedElement $signedElement, CertificateProvider $configuration)
Allows for validation of a signature trying different validators till a validator is found that can v...
Create styles array
The data for the language used.
get($key, $default=null)
Query to get the value in the configuration for the given key.
Describes a logger instance.
__construct(LoggerInterface $logger, array $validators)