ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Signature\Validator Class Reference

Signature Validator. More...

+ Collaboration diagram for SAML2\Signature\Validator:

Public Member Functions

 __construct (LoggerInterface $logger)
 
 hasValidSignature (SignedElement $signedElement, CertificateProvider $configuration)
 

Private Attributes

 $logger
 

Detailed Description

Signature Validator.

Definition at line 14 of file Validator.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\Signature\Validator::__construct ( LoggerInterface  $logger)

Definition at line 21 of file Validator.php.

References SAML2\Signature\Validator\$logger.

22  {
23  $this->logger = $logger;
24  }

Member Function Documentation

◆ hasValidSignature()

SAML2\Signature\Validator::hasValidSignature ( SignedElement  $signedElement,
CertificateProvider  $configuration 
)

Definition at line 26 of file Validator.php.

29  {
30  // should be DI
31  $validator = new ValidatorChain(
32  $this->logger,
33  array(
34  new PublicKeyValidator($this->logger, new KeyLoader()),
35  new FingerprintValidator($this->logger, new FingerprintLoader())
36  )
37  );
38 
39  return $validator->hasValidSignature($signedElement, $configuration);
40  }

Field Documentation

◆ $logger

SAML2\Signature\Validator::$logger
private

Definition at line 19 of file Validator.php.

Referenced by SAML2\Signature\Validator\__construct().


The documentation for this class was generated from the following file: