JWKFactory.php
public static function createFromValues(array $values)
    {
        if (\array_key_exists('keys', $values) && \is_array($values['keys'])) {
            return JWKSet::createFromKeyData($values);
        }

        return JWK::create($values);
    }
public static function createFromValues(array $values)
    {
        if (\array_key_exists('keys', $values) && \is_array($values['keys'])) {
            return JWKSet::createFromKeyData($values);
        }

        return JWK::create($values);
    }
public static function createFromValues ( array $ values ) { if ( \ array_key_exists ( 'keys' , $ values ) && \ is_array ( $ values [ 'keys' ] ) ) { return JWKSet :: createFromKeyData ( $ values ) ; } return JWK :: create ( $ values ) ; }
Creates a key or key set from the given input.

@return JWK|JWKSet
Creates a key or key set from the given input .