Top Description Methods
io.undertow.protocols.alpn

public Interface ALPNProvider

Known Direct Implementers
io.undertow.protocols.alpn.ModularJdkAlpnProvider, io.undertow.protocols.alpn.OpenSSLAlpnProvider
Imports
javax.net.ssl.SSLEngine

Interface that allows for ALPN providers to be dynamically selected. THIS API IS TECH PREVIEW It will not be finalised until JDK9 has been released and the JDK9 ALPN API is 100% confirmed
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The priority of this provider, higher priority providers will be tried first
getPriority
()

public String

Returns:

The selected protocol
getSelectedProtocol
(SSLEngine
The SSL Engine
engine
)

Gets the selected ALPN protocol, of null if none was selected.

public boolean
isEnabled(SSLEngine sslEngine)

public SSLEngine

Returns:

The new SSLEngine
setProtocols
(SSLEngine
The original engine
engine
,
String[]
The protocols
protocols
)

Sets the SSL protocols, and potentially wraps the SSLEngine

Method Detail

getPriorityback to summary
public int getPriority()
Returns:int

The priority of this provider, higher priority providers will be tried first

getSelectedProtocolback to summary
public String getSelectedProtocol(SSLEngine engine)

Gets the selected ALPN protocol, of null if none was selected.

Parameters
engine:SSLEngine

The SSL Engine

Returns:String

The selected protocol

isEnabledback to summary
public boolean isEnabled(SSLEngine sslEngine)
setProtocolsback to summary
public SSLEngine setProtocols(SSLEngine engine, String[] protocols)

Sets the SSL protocols, and potentially wraps the SSLEngine

Parameters
engine:SSLEngine

The original engine

protocols:String[]

The protocols

Returns:SSLEngine

The new SSLEngine