Reputation: 12892
I'm trying to use Jetty HTTP/2 client on Android to talk to a custom HTTP/2 service. I can't see a way to start the android HTTP/2 app using ALPN as boot parameter. Is there a way can I disable ALPN for Jetty client or some workaround to activate ALPN during the boot time?
Upvotes: 0
Views: 644
Reputation: 49452
As answered in the [jetty-users] mailing list.
Not possible.
HTTP/2 pretty much requires TLS/ALPN.
The way to do that, currently, is to modify the Java SSL classes at bootclasspath time.
The Jetty Project has written this modification into the alpn-boot.jar
for the standard OpenJDK based Java envs.
There's no way for a normal Android application to do xbootclasspath on a normal android device.
Options you have.
Good Luck,
Upvotes: 1