枚举类 Ssl.ClientAuth

java.lang.Object
java.lang.Enum<Ssl.ClientAuth>
org.springframework.boot.web.server.Ssl.ClientAuth
所有已实现的接口:
Serializable, Comparable<Ssl.ClientAuth>, Constable
封闭类:
Ssl

public static enum Ssl.ClientAuth extends Enum<Ssl.ClientAuth>
Client authentication types.
  • 枚举常量详细资料

    • NONE

      public static final Ssl.ClientAuth NONE
      Client authentication is not wanted.
    • WANT

      public static final Ssl.ClientAuth WANT
      Client authentication is wanted but not mandatory.
    • NEED

      public static final Ssl.ClientAuth NEED
      Client authentication is needed and mandatory.
  • 方法详细资料

    • values

      public static Ssl.ClientAuth[] values()
      返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static Ssl.ClientAuth valueOf(String name)
      返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • map

      public static <R> R map(Ssl.ClientAuth clientAuth, R none, R want, R need)
      Map an optional Ssl.ClientAuth value to a different type.
      类型参数:
      R - the result type
      参数:
      clientAuth - the client auth to map (may be null)
      none - the value for NONE or null
      want - the value for WANT
      need - the value for NEED
      返回:
      the mapped value
      从以下版本开始:
      3.1.0