Jose\Object\JWKInterface::has PHP Метод

has() публичный Метод

Returns true if the JWK has the value identified by.
public has ( string $key ) : boolean
$key string The key
Результат boolean
    public function has($key);

Usage Example

Пример #1
0
 /**
  * @param JWKInterface $key
  */
 private function checkKey(JWKInterface $key)
 {
     Assertion::eq($key->get('kty'), 'OKP', 'Wrong key type.');
     Assertion::true($key->has('x'), 'The key parameter "x" is missing.');
     Assertion::true($key->has('crv'), 'The key parameter "crv" is missing.');
     Assertion::inArray($key->get('crv'), ['Ed25519'], 'Unsupported curve');
 }
All Usage Examples Of Jose\Object\JWKInterface::has