Jose\Object\JWKInterface::get PHP Method

get() public method

Get the value with a specific key.
public get ( string $key ) : mixed | null
$key string The key
return mixed | null The value
    public function get($key);

Usage Example

Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function getCEK(JWKInterface $key, array $header)
 {
     if (!$key->has('kty') || 'dir' !== $key->get('kty') || !$key->has('dir')) {
         throw new \InvalidArgumentException('The key is not valid');
     }
     return Base64Url::decode($key->get('dir'));
 }
All Usage Examples Of Jose\Object\JWKInterface::get