Interface ALPNProcessor

All Known Subinterfaces:
ALPNProcessor.Client, ALPNProcessor.Server
All Known Implementing Classes:
ConscryptClientALPNProcessor, ConscryptServerALPNProcessor, JDK9ClientALPNProcessor, JDK9ServerALPNProcessor

public interface ALPNProcessor
  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    default boolean
    appliesTo(SSLEngine sslEngine)
    Tests if this processor can be applied to the given SSLEngine.
    default void
    configure(SSLEngine sslEngine, Connection connection)
    Configures the given SSLEngine and the given Connection for ALPN.
    default void
    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

      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