public static function createJWSWithDetachedPayloadToCompactJSON($payload, JWKInterface $signature_key, array $protected_headers) { $jws = self::createJWSWithDetachedPayloadAndSign($payload, $signature_key, $protected_headers, []); return $jws->toCompactJSON(0); }