Interface SSLContext.SNICallBack

Enclosing class:
SSLContext

@Deprecated public static interface SSLContext.SNICallBack
Deprecated.
Unused. This interface will be removed in Tomcat 12 onwards
Interface implemented by components that will receive the call back to select an OpenSSL SSLContext based on the host name requested by the client.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getSslContext(String sniHostName)
    Deprecated.
    This callback is made during the TLS handshake when the client uses the SNI extension to request a specific TLS host.
  • Method Details

    • getSslContext

      long getSslContext(String sniHostName)
      Deprecated.
      This callback is made during the TLS handshake when the client uses the SNI extension to request a specific TLS host.
      Parameters:
      sniHostName - The host name requested by the client - must be in lower case
      Returns:
      The Java representation of the pointer to the OpenSSL SSLContext to use for the given host or zero if no SSLContext could be identified