Interface ALPNProvider

    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • isEnabled

        boolean isEnabled​(javax.net.ssl.SSLEngine sslEngine)
      • setProtocols

        javax.net.ssl.SSLEngine setProtocols​(javax.net.ssl.SSLEngine engine,
                                             java.lang.String[] protocols)
        Sets the SSL protocols, and potentially wraps the SSLEngine
        Parameters:
        engine - The original engine
        protocols - The protocols
        Returns:
        The new SSLEngine
      • getSelectedProtocol

        java.lang.String getSelectedProtocol​(javax.net.ssl.SSLEngine engine)
        Gets the selected ALPN protocol, of null if none was selected.
        Parameters:
        engine - The SSL Engine
        Returns:
        The selected protocol
      • getPriority

        int getPriority()
        Returns:
        The priority of this provider, higher priority providers will be tried first