Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String OPENSSL_ENGINE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPriority()  
      java.lang.String getSelectedProtocol​(javax.net.ssl.SSLEngine engine)
      Gets the selected ALPN protocol, of null if none was selected.
      boolean isEnabled​(javax.net.ssl.SSLEngine sslEngine)  
      javax.net.ssl.SSLEngine setProtocols​(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)
      Sets the SSL protocols, and potentially wraps the SSLEngine
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpenSSLAlpnProvider

        public OpenSSLAlpnProvider()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(javax.net.ssl.SSLEngine sslEngine)
        Specified by:
        isEnabled in interface ALPNProvider
      • setProtocols

        public javax.net.ssl.SSLEngine setProtocols​(javax.net.ssl.SSLEngine engine,
                                                    java.lang.String[] protocols)
        Description copied from interface: ALPNProvider
        Sets the SSL protocols, and potentially wraps the SSLEngine
        Specified by:
        setProtocols in interface ALPNProvider
        Parameters:
        engine - The original engine
        protocols - The protocols
        Returns:
        The new SSLEngine
      • getSelectedProtocol

        public java.lang.String getSelectedProtocol​(javax.net.ssl.SSLEngine engine)
        Description copied from interface: ALPNProvider
        Gets the selected ALPN protocol, of null if none was selected.
        Specified by:
        getSelectedProtocol in interface ALPNProvider
        Parameters:
        engine - The SSL Engine
        Returns:
        The selected protocol
      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface ALPNProvider
        Returns:
        The priority of this provider, higher priority providers will be tried first
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object