public static enum ApplicationProtocolConfig.SelectorFailureBehavior extends java.lang.Enum<ApplicationProtocolConfig.SelectorFailureBehavior>
枚举常量和说明 |
---|
CHOOSE_MY_LAST_PROTOCOL
If the peer who selects the application protocol doesn't find a match it will just select the last protocol
it advertised support for.
|
FATAL_ALERT
If the peer who selects the application protocol doesn't find a match this will result in the failing the
handshake with a fatal alert.
|
NO_ADVERTISE
If the peer who selects the application protocol doesn't find a match it will pretend no to support
the TLS extension by not advertising support for the TLS extension in the handshake.
|
限定符和类型 | 方法和说明 |
---|---|
static ApplicationProtocolConfig.SelectorFailureBehavior |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ApplicationProtocolConfig.SelectorFailureBehavior[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ApplicationProtocolConfig.SelectorFailureBehavior FATAL_ALERT
For example in the case of ALPN this will result in a no_application_protocol(120) alert.
public static final ApplicationProtocolConfig.SelectorFailureBehavior NO_ADVERTISE
public static final ApplicationProtocolConfig.SelectorFailureBehavior CHOOSE_MY_LAST_PROTOCOL
This may be illegal for some RFCs but was observed behavior by some SSL implementations, and is supported for flexibility/compatibility.
public static ApplicationProtocolConfig.SelectorFailureBehavior[] values()
for (ApplicationProtocolConfig.SelectorFailureBehavior c : ApplicationProtocolConfig.SelectorFailureBehavior.values()) System.out.println(c);
public static ApplicationProtocolConfig.SelectorFailureBehavior valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerException