Package io.undertow.protocols.alpn
Class OpenSSLAlpnProvider
- java.lang.Object
-
- io.undertow.protocols.alpn.OpenSSLAlpnProvider
-
- All Implemented Interfaces:
ALPNProvider
public class OpenSSLAlpnProvider extends Object implements ALPNProvider
Open listener adaptor for ALPN connections that use the Wildfly OpenSSL implementation- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSSLAlpnProvider.OpenSSLALPNMethods
-
Field Summary
Fields Modifier and Type Field Description static String
OPENSSL_ENGINE
-
Constructor Summary
Constructors Constructor Description OpenSSLAlpnProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
String
getSelectedProtocol(SSLEngine engine)
Gets the selected ALPN protocol, of null if none was selected.boolean
isEnabled(SSLEngine sslEngine)
SSLEngine
setProtocols(SSLEngine engine, String[] protocols)
Sets the SSL protocols, and potentially wraps the SSLEngineString
toString()
-
-
-
Field Detail
-
OPENSSL_ENGINE
public static final String OPENSSL_ENGINE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled(SSLEngine sslEngine)
- Specified by:
isEnabled
in interfaceALPNProvider
-
setProtocols
public SSLEngine setProtocols(SSLEngine engine, String[] protocols)
Description copied from interface:ALPNProvider
Sets the SSL protocols, and potentially wraps the SSLEngine- Specified by:
setProtocols
in interfaceALPNProvider
- Parameters:
engine
- The original engineprotocols
- The protocols- Returns:
- The new SSLEngine
-
getSelectedProtocol
public String getSelectedProtocol(SSLEngine engine)
Description copied from interface:ALPNProvider
Gets the selected ALPN protocol, of null if none was selected.- Specified by:
getSelectedProtocol
in interfaceALPNProvider
- Parameters:
engine
- The SSL Engine- Returns:
- The selected protocol
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceALPNProvider
- Returns:
- The priority of this provider, higher priority providers will be tried first
-
-