Enum Class SniMatchType

java.lang.Object
java.lang.Enum<SniMatchType>
io.helidon.webserver.SniMatchType
All Implemented Interfaces:
Serializable, Comparable<SniMatchType>, Constable

public enum SniMatchType extends Enum<SniMatchType>
Internal classification of the TLS material selected for a connection from SNI.

The match type distinguishes exact and wildcard virtual-host matches from fallback to listener default TLS, so later HTTP protocol handling can expose and enforce the correct request-time policy.

  • Enum Constant Details

    • EXACT

      public static final SniMatchType EXACT
      SNI matched an exact configured virtual host.
    • WILDCARD

      public static final SniMatchType WILDCARD
      SNI matched a configured wildcard virtual host.
    • FALLBACK_MISSING

      public static final SniMatchType FALLBACK_MISSING
      ClientHello had no SNI host and listener default TLS was selected.
    • FALLBACK_UNMATCHED

      public static final SniMatchType FALLBACK_UNMATCHED
      ClientHello had unmatched SNI and listener default TLS was selected.
  • Method Details

    • values

      public static SniMatchType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SniMatchType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null