uri = $uri; $this->signatureValidator = $signatureValidator; } /** * @param string $signature * * @return boolean true only if valid * * @throws SecurityException * @throws \oat\tao\model\metadata\exception\InconsistencyConfigException */ public function evaluate($signature) { $this->signatureValidator->checkSignature($signature, $this->uri); return true; } /** * @return string */ public function getName() { return __CLASS__; } /** * @return array */ public function getOptions() { return []; } /** * @return string */ public function getMessage() { return $this->message; } /** * @param string $message * * @return $this */ public function setMessage($message) { $this->message = $message; return $this; } /** * @param array $options */ public function setOptions(array $options) { throw new InvalidArgumentException('This validator does not have any options'); } }