JWKFactory.php
public static function createFromSecret(string $secret, array $additional_values = []): JWK
    {
        $values = \array_merge(
            $additional_values,
            [
                'kty' => 'oct',
                'k' => Base64Url::encode($secret),
            ]
        );

        return JWK::create($values);
    }
public static function createFromSecret(string $secret, array $additional_values = []): JWK
    {
        $values = \array_merge(
            $additional_values,
            [
                'kty' => 'oct',
                'k' => Base64Url::encode($secret),
            ]
        );

        return JWK::create($values);
    }
public static function createFromSecret ( string $ secret , array $ additional_values = [ ] ) : JWK { $ values = \ array_merge ( $ additional_values , [ 'kty' => 'oct' , 'k' => Base64Url :: encode ( $ secret ) , ] ) ; return JWK :: create ( $ values ) ; }
This method create a JWK object using a shared secret.
This method create a JWK object using a shared secret .