TLS application-layer protocol negotiation extension
Java Enhancement Proposal 244, simply enhanced the javax.net.ssl
package so that it supports the Transport Layer Security (TLS) ALPN (Application Layer Protocol Negotiation) extension. This extension permits application protocol negotiation for TLS connections.
TLS ALPN extension
The ALPN is a TLS extension and can be used to negotiate which protocol to implement when using a secure connection. ALPN represents an efficient means of negotiating protocols. As indicated in the following diagram, there are five basic steps to TLS handshakes:
The javax.net.ssl package
The java.net.ssl
package contains classes relating to secure socket packages. This permits us to use SSL as an example, for the reliable detection of errors introduced to the network byte stream. It also provides the ability to encrypt the data as well as provide authentication of client and server.
This package includes the following interfaces:
public interface HandshakeCompletedListener...