Jetty :: ALPN :: Tests

A pure Java(TM) implementation of the Application Layer Protocol Negotiation TLS Extension

License

License

Categories

Categories

Jetty Container Application Servers
GroupId

GroupId

org.mortbay.jetty.alpn
ArtifactId

ArtifactId

alpn-tests
Last Version

Last Version

8.1.13.v20181017
Release Date

Release Date

Type

Type

jar
Description

Description

Jetty :: ALPN :: Tests
A pure Java(TM) implementation of the Application Layer Protocol Negotiation TLS Extension
Project Organization

Project Organization

Webtide

Download alpn-tests

How to add to project

<!-- https://jarcasting.com/artifacts/org.mortbay.jetty.alpn/alpn-tests/ -->
<dependency>
    <groupId>org.mortbay.jetty.alpn</groupId>
    <artifactId>alpn-tests</artifactId>
    <version>8.1.13.v20181017</version>
</dependency>
// https://jarcasting.com/artifacts/org.mortbay.jetty.alpn/alpn-tests/
implementation 'org.mortbay.jetty.alpn:alpn-tests:8.1.13.v20181017'
// https://jarcasting.com/artifacts/org.mortbay.jetty.alpn/alpn-tests/
implementation ("org.mortbay.jetty.alpn:alpn-tests:8.1.13.v20181017")
'org.mortbay.jetty.alpn:alpn-tests:jar:8.1.13.v20181017'
<dependency org="org.mortbay.jetty.alpn" name="alpn-tests" rev="8.1.13.v20181017">
  <artifact name="alpn-tests" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.mortbay.jetty.alpn', module='alpn-tests', version='8.1.13.v20181017')
)
libraryDependencies += "org.mortbay.jetty.alpn" % "alpn-tests" % "8.1.13.v20181017"
[org.mortbay.jetty.alpn/alpn-tests "8.1.13.v20181017"]

Dependencies

provided (1)

Group / Artifact Type Version
org.eclipse.jetty.alpn : alpn-api jar 1.1.3.v20160715

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Jetty ALPN

Implementation of the ALPN (Application Layer Protocol Negotiation) Specification (RFC 7301) for OpenJDK 8.

The ALPN APIs have been backported from Java 9 to OpenJDK 8u252. Therefore, since OpenJDK 8u252 there is no more need for the Jetty ALPN boot jar provided by this project.

Please read the following blog entry for more context: https://webtide.com/jetty-alpn-java-8u252/.

🔥

There are Java vendors that produced a 8u251 version that unfortunately is incompatible with the previous OpenJDK version (8u242) and incompatible with OpenJDK 8u252 as well.

There is no support for the 8u251 version from any vendor.

How to use ALPN with OpenJDK 8

The following are the options that allow you to use ALPN in your applications.

Option 1 - Enforce OpenJDK 8u252 or later

Enforce the use of OpenJDK 8u252 or later for your project.

Use directly the backported ALPN APIs provided by the OpenJDK 8u252 or later, or libraries that use the backported ALPN APIs.

There is no more need to add the Jetty ALPN boot jar provided by this project to the bootclasspath.

Option 2 - Use the Jetty ALPN Agent

Use the Jetty ALPN Agent 2.0.10 or later.

Add the agent to your command line options for any version of Java 8.

The agent will dynamically detect if the Java 8 version you are running requires the redefinition of the SSL classes (the redefinitions are provided by this project) to implement ALPN. If the Java 8 version you are using is 8u252 or later, the Jetty ALPN Agent will not redefine any class.

When using the Jetty ALPN Agent and OpenJDK 8u252 or later, applications should arrange to use directly, or via some other library such as the Jetty ALPN libraries, the backported ALPN APIs.

Option 3 - Carefully setup the command line

This option requires that you know exactly what Java 8 version your application uses, and change the command line options accordingly.

If you use OpenJDK 8u242 or earlier, you must add the corresponding Jetty ALPN boot jar to the bootclasspath.

If you use OpenJDK 8u252 or later, you must NOT add the Jetty ALPN boot jar to the bootclasspath.

Jetty ALPN libraries

The Jetty Project artifacts jetty-alpn-openjdk8-[client|server], version 9.4.28 or later, provide transparent support for ALPN.

If the OpenJDK version is 8u252 or later, they will use the backported ALPN APIs.

Otherwise, they will use the Jetty ALPN APIs provided by the Jetty ALPN boot jar (this project) that must be therefore present in the bootclasspath.

OpenJDK 8 version to ALPN version mapping

Please see the mapping table.

The table only shows the mapping up to OpenJDK 8u242, the last version that required the ALPN boot jar.

org.mortbay.jetty.alpn

Jetty Non-Eclipse Repositories

Additional Jetty repositories not covered by the Eclipse Foundation IP policy

Versions

Version
8.1.13.v20181017
8.1.12.v20180117
8.1.11.v20170118
8.1.10.v20161026
8.1.9.v20160720
8.1.8.v20160420
8.1.7.v20160121
8.1.6.v20151105
8.1.5.v20150921
8.1.4.v20150727
8.1.3.v20150130
8.1.2.v20141202
8.1.1.v20141016
8.1.0.v20141016
8.0.0.v20140317
8.0.0
7.1.3.v20150130
7.1.2.v20141202
7.1.1.v20141016
7.1.0.v20141016
7.0.0.v20140317
7.0.0