JWKFactory.php
public static function createFromJsonObject(string $value)
    {
        $json = \json_decode($value, true);
        if (!\is_array($json)) {
            throw new \InvalidArgumentException('Invalid key or key set.');
        }

        return self::createFromValues($json);
    }
public static function createFromJsonObject(string $value)
    {
        $json = \json_decode($value, true);
        if (!\is_array($json)) {
            throw new \InvalidArgumentException('Invalid key or key set.');
        }

        return self::createFromValues($json);
    }
public static function createFromJsonObject ( string $ value ) { $ json = \ json_decode ( $ value , true ) ; if ( ! \ is_array ( $ json ) ) { throw new \ InvalidArgumentException ( 'Invalid key or key set.' ) ; } return self :: createFromValues ( $ json ) ; }
Creates a key from a Json string.

@return JWK|JWKSet
Creates a key from a Json string .