Package org.eclipse.jetty.io.ssl
Interface ALPNProcessor
- All Known Subinterfaces:
ALPNProcessor.Client
,ALPNProcessor.Server
- All Known Implementing Classes:
ConscryptClientALPNProcessor
,ConscryptServerALPNProcessor
,JDK9ClientALPNProcessor
,JDK9ServerALPNProcessor
public interface ALPNProcessor
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Client-side interface used by ServiceLoader.static interface
Server-side interface used by ServiceLoader. -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Tests if this processor can be applied to the given SSLEngine.default void
configure
(SSLEngine sslEngine, Connection connection) Configures the given SSLEngine and the given Connection for ALPN.default void
init()
Initializes this ALPNProcessor
-
Method Details
-
init
default void init()Initializes this ALPNProcessor- Throws:
RuntimeException
- if this processor is unavailable (e.g. missing dependencies or wrong JVM)
-
appliesTo
Tests if this processor can be applied to the given SSLEngine.- Parameters:
sslEngine
- the SSLEngine to check- Returns:
- true if the processor can be applied to the given SSLEngine
-
configure
Configures the given SSLEngine and the given Connection for ALPN.- Parameters:
sslEngine
- the SSLEngine to configureconnection
- the Connection to configure- Throws:
RuntimeException
- if this processor cannot be configured
-