Interface SniContext


public interface SniContext
Listener SNI decision attached to a connection after TLS virtual-host selection.

Protocol handlers use this context to expose selected host information and to validate the parsed HTTP authority against the TLS SNI selection policy.

  • Method Details

    • presentedHost

      Optional<String> presentedHost()
      Normalized SNI host presented by the client.
      Returns:
      presented SNI host, when present
    • matchedHost

      Optional<String> matchedHost()
      Configured virtual-host pattern that matched the presented SNI host.
      Returns:
      matched configured host, when a virtual host matched
    • matchType

      SniMatchType matchType()
      SNI match type.
      Returns:
      match type
    • checkAuthority

      SniContext.AuthorityCheck checkAuthority(UriAuthority authority)
      Check whether an already parsed HTTP authority is allowed by the listener SNI policy.
      Parameters:
      authority - parsed HTTP authority
      Returns:
      authority check result