Jose\Factory\JWEFactoryInterface::createJWEToFlattenedJSON PHP Method

createJWEToFlattenedJSON() public static method

public static createJWEToFlattenedJSON ( mixed $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers = [], array $shared_headers = [], array $recipient_headers = [], string | null $aad = null ) : string
$payload mixed
$recipient_key Jose\Object\JWKInterface
$shared_protected_headers array
$shared_headers array
$recipient_headers array
$aad string | null
return string
    public static function createJWEToFlattenedJSON($payload, JWKInterface $recipient_key, array $shared_protected_headers = [], $shared_headers = [], $recipient_headers = [], $aad = null);