Jose\Object\JWKInterface::get PHP 메소드

get() 공개 메소드

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

Usage Example

예제 #1
0
파일: Dir.php 프로젝트: gitter-badger/jose
 /**
  * {@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