/** * @param string $n_b64 * @param string $e_b64 * @param string $alg * @param string $use * @param array $x5c * @param null $x5u * @param null $x5t * @param null $x5t_S256 * @param null $kid * @throws \jwk\exceptions\InvalidJWKAlgorithm */ public function __construct($n_b64, $e_b64, $alg = JSONWebSignatureAndEncryptionAlgorithms::RS256, $use = JSONWebKeyPublicKeyUseValues::Signature, $x5c = array(), $x5u = null, $x5t = null, $x5t_S256 = null, $kid = null) { parent::__construct($alg, $use, $kid); $this->n_b64 = $n_b64; $this->e_b64 = $e_b64; $this->x5c = $x5c; $this->x5u = $x5u; $this->x5t = $x5t; $this->x5t_S256 = $x5t_S256; }
/** * @param string $key_pem * @param string $alg * @param string $use */ public function __construct($key_pem, $alg = JSONWebSignatureAndEncryptionAlgorithms::RS256, $use = JSONWebKeyPublicKeyUseValues::Signature) { parent::__construct($alg, $use); $this->key_pem = $key_pem; }