public function decryptUsingKey(JWE &$jwe, JWK $jwk, int $recipient): bool
    {
        $jwkset = new JWKSet([$jwk]);

        return $this->decryptUsingKeySet($jwe, $jwkset, $recipient);
    }
public function decryptUsingKey(JWE &$jwe, JWK $jwk, int $recipient): bool
    {
        $jwkset = new JWKSet([$jwk]);

        return $this->decryptUsingKeySet($jwe, $jwkset, $recipient);
    }
public function decryptUsingKey ( JWE & $ jwe , JWK $ jwk , int $ recipient ) : bool { $ jwkset = new JWKSet ( [ $ jwk ] ) ; return $ this -> decryptUsingKeySet ( $ jwe , $ jwkset , $ recipient ) ; }
This method will try to decrypt the given JWE and recipient using a JWK.

@param JWE $jwe       A JWE object to decrypt
@param JWK $jwk       The key used to decrypt the input
@param int $recipient The recipient used to decrypt the token
This method will try to decrypt the given JWE and recipient using a JWK .