Interface ALPNProcessor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ALPNProcessor.Client
      Client-side interface used by ServiceLoader.
      static interface  ALPNProcessor.Server
      Server-side interface used by ServiceLoader.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean appliesTo​(javax.net.ssl.SSLEngine sslEngine)
      Tests if this processor can be applied to the given SSLEngine.
      default void configure​(javax.net.ssl.SSLEngine sslEngine, Connection connection)
      Configures the given SSLEngine and the given Connection for ALPN.
      default void init()
      Initializes this ALPNProcessor
    • Method Detail

      • init

        default void init()
        Initializes this ALPNProcessor
        Throws:
        java.lang.RuntimeException - if this processor is unavailable (e.g. missing dependencies or wrong JVM)
      • appliesTo

        default boolean appliesTo​(javax.net.ssl.SSLEngine sslEngine)
        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

        default void configure​(javax.net.ssl.SSLEngine sslEngine,
                               Connection connection)
        Configures the given SSLEngine and the given Connection for ALPN.
        Parameters:
        sslEngine - the SSLEngine to configure
        connection - the Connection to configure
        Throws:
        java.lang.RuntimeException - if this processor cannot be configured