Example #1
0
 /**
  * Constructor that allows to control the behavior of the Validator
  *
  * @param bool $canValidate the return value of the canValidate call
  * @param bool $isValid     the return value of the isValid hasValidSignature call
  */
 public function __construct($canValidate, $isValid)
 {
     $this->canValidate = $canValidate;
     $this->isValid = $isValid;
     parent::__construct(new \Psr\Log\NullLogger());
 }
Example #2
0
 public function __construct(\Psr\Log\LoggerInterface $logger, SAML2_Certificate_KeyLoader $keyLoader)
 {
     $this->keyLoader = $keyLoader;
     parent::__construct($logger);
 }
Example #3
0
 public function __construct(\Psr\Log\LoggerInterface $logger, SAML2_Certificate_FingerprintLoader $fingerprintLoader)
 {
     $this->fingerprintLoader = $fingerprintLoader;
     parent::__construct($logger);
 }