Package io.undertow.protocols.alpn
Class OpenSSLAlpnProvider
- java.lang.Object
-
- io.undertow.protocols.alpn.OpenSSLAlpnProvider
-
- All Implemented Interfaces:
ALPNProvider
public class OpenSSLAlpnProvider extends java.lang.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 classOpenSSLAlpnProvider.OpenSSLALPNMethods
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOPENSSL_ENGINE
-
Constructor Summary
Constructors Constructor Description OpenSSLAlpnProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()java.lang.StringgetSelectedProtocol(javax.net.ssl.SSLEngine engine)Gets the selected ALPN protocol, of null if none was selected.booleanisEnabled(javax.net.ssl.SSLEngine sslEngine)javax.net.ssl.SSLEnginesetProtocols(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)Sets the SSL protocols, and potentially wraps the SSLEnginejava.lang.StringtoString()
-
-
-
Field Detail
-
OPENSSL_ENGINE
public static final java.lang.String OPENSSL_ENGINE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled(javax.net.ssl.SSLEngine sslEngine)
- Specified by:
isEnabledin interfaceALPNProvider
-
setProtocols
public javax.net.ssl.SSLEngine setProtocols(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)Description copied from interface:ALPNProviderSets the SSL protocols, and potentially wraps the SSLEngine- Specified by:
setProtocolsin interfaceALPNProvider- Parameters:
engine- The original engineprotocols- The protocols- Returns:
- The new SSLEngine
-
getSelectedProtocol
public java.lang.String getSelectedProtocol(javax.net.ssl.SSLEngine engine)
Description copied from interface:ALPNProviderGets the selected ALPN protocol, of null if none was selected.- Specified by:
getSelectedProtocolin interfaceALPNProvider- Parameters:
engine- The SSL Engine- Returns:
- The selected protocol
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceALPNProvider- Returns:
- The priority of this provider, higher priority providers will be tried first
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-