public getSignature ( integer $id ) : Jose\Object\SignatureInterface | ||
$id | integer | |
Résultat | Jose\Object\SignatureInterface |
/** * {@inheritdoc} */ public function verify(Object\JWSInterface $jws, Object\JWKSetInterface $signature_key_set, $detached_payload = null) { Assertion::inArray($jws->getSignature(0)->getProtectedHeader('alg'), $this->getSupportedSignatureAlgorithms(), sprintf('The signature algorithm "%s" is not supported or not allowed.', $jws->getSignature(0)->getProtectedHeader('alg'))); $index = null; $this->verifier->verifyWithKeySet($jws, $signature_key_set, $detached_payload, $index); Assertion::notNull($index, 'JWS signature(s) verification failed.'); $this->checker_manager->checkJWS($jws, $index); return $index; }