Interface ALPNProcessor
- All Known Subinterfaces:
 ALPNProcessor.Client, ALPNProcessor.Server
- All Known Implementing Classes:
 BouncyCastleClientALPNProcessor, BouncyCastleServerALPNProcessor, ConscryptClientALPNProcessor, ConscryptServerALPNProcessor, JDK9ClientALPNProcessor, JDK9ServerALPNProcessor
public interface ALPNProcessor
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceClient-side interface used by ServiceLoader.static interfaceServer-side interface used by ServiceLoader. - 
Method Summary
Modifier and TypeMethodDescriptiondefault booleanTests if this processor can be applied to the given SSLEngine.default voidconfigure(SSLEngine sslEngine, Connection connection) Configures the given SSLEngine and the given Connection for ALPN.default voidinit()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
 
 -