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 Detail

      • init

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

        default boolean appliesTo​(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​(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:
        RuntimeException - if this processor cannot be configured