Package io.undertow.protocols.alpn
Class OpenSSLAlpnProvider
java.lang.Object
io.undertow.protocols.alpn.OpenSSLAlpnProvider
- All Implemented Interfaces:
ALPNProvider
Open listener adaptor for ALPN connections that use the Wildfly OpenSSL implementation
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getSelectedProtocol
(SSLEngine engine) Gets the selected ALPN protocol, of null if none was selected.boolean
setProtocols
(SSLEngine engine, String[] protocols) Sets the SSL protocols, and potentially wraps the SSLEnginetoString()
-
Field Details
-
OPENSSL_ENGINE
- See Also:
-
-
Constructor Details
-
OpenSSLAlpnProvider
public OpenSSLAlpnProvider()
-
-
Method Details
-
isEnabled
- Specified by:
isEnabled
in interfaceALPNProvider
-
setProtocols
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
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
-
toString
-