public verify ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $signature_key_set, $detached_payload = null ) | ||
$jws | Jose\Object\JWSInterface | |
$signature_key_set | Jose\Object\JWKSetInterface |
/** * {@inheritdoc} */ public function decode($token) { try { $jws = $this->jwt_loader->load($token, $this->encryption_jwkset, null !== $this->encryption_jwkset); $this->jwt_loader->verify($jws, $this->signature_jwkset); return $jws->getClaims(); } catch (\Exception $e) { $reason = $this->getDecodeErrorReason($e->getMessage()); throw new JWTDecodeFailureException($reason, sprintf('Invalid JWT Token: %s', $e->getMessage()), $e); } }