public static enum ApplicationProtocolConfig.SelectorFailureBehavior extends Enum<ApplicationProtocolConfig.SelectorFailureBehavior>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static ApplicationProtocolConfig.SelectorFailureBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationProtocolConfig.SelectorFailureBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2008–2024 The Netty Project. All rights reserved.