Jose\Object\BaseJWKSet::doesKeySatisfyRestrictions PHP Method

doesKeySatisfyRestrictions() private method

private doesKeySatisfyRestrictions ( array $restrictions, Jose\Object\JWKInterface $key ) : boolean
$restrictions array
$key Jose\Object\JWKInterface
return boolean
    private function doesKeySatisfyRestrictions(array $restrictions, JWKInterface $key)
    {
        foreach ($restrictions as $k => $v) {
            if (!$key->has($k) || $v !== $key->get($k)) {
                return false;
            }
        }
        return true;
    }