SSLEngine agnostic way to configure a ApplicationProtocolNegotiator.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ApplicationProtocolConfig.Protocol
Defines which application level protocol negotiation to use. |
| public static enum | ApplicationProtocolConfig.SelectedListenerFailureBehavior
Defines the most common behaviors for the peer which is notified of the selected protocol. |
| public static enum | ApplicationProtocolConfig.SelectorFailureBehavior
Defines the most common behaviors for the peer that selects the application protocol. |
| Modifier and Type | Field and Description |
|---|---|
| public static final ApplicationProtocolConfig | DISABLED
The configuration that disables application protocol negotiation. |
| private final ApplicationProtocolConfig. | |
| private final ApplicationProtocolConfig. | |
| private final ApplicationProtocolConfig. | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | ApplicationProtocolConfig(ApplicationProtocolConfig.
The application protocol functionality to use. protocol,How the peer selecting the protocol should behave. selectorBehavior,How the peer being notified of the selected protocol should behave. selectedBehavior,The order of iteration determines the preference of support for protocols. supportedProtocols)Create a new instance. |
| public | ApplicationProtocolConfig(ApplicationProtocolConfig.
The application protocol functionality to use. protocol,How the peer selecting the protocol should behave. selectorBehavior,How the peer being notified of the selected protocol should behave. selectedBehavior,The order of iteration determines the preference of support for protocols. supportedProtocols)Create a new instance. |
| private | ApplicationProtocolConfig(ApplicationProtocolConfig.
The application protocol functionality to use. protocol,How the peer selecting the protocol should behave. selectorBehavior,How the peer being notified of the selected protocol should behave. selectedBehavior,The order of iteration determines the preference of support for protocols. supportedProtocols)Create a new instance. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ApplicationProtocolConfig. | |
| public ApplicationProtocolConfig. | selectedListenerFailureBehavior()
Get the desired behavior for the peer who is notified of the selected protocol. |
| public ApplicationProtocolConfig. | selectorFailureBehavior()
Get the desired behavior for the peer who selects the application protocol. |
| public List |
| DISABLED | back to summary |
|---|---|
| public static final ApplicationProtocolConfig DISABLED The configuration that disables application protocol negotiation. | |
| protocol | back to summary |
|---|---|
| private final ApplicationProtocolConfig. | |
| selectedBehavior | back to summary |
|---|---|
| private final ApplicationProtocolConfig. | |
| selectorBehavior | back to summary |
|---|---|
| private final ApplicationProtocolConfig. | |
| supportedProtocols | back to summary |
|---|---|
| private final List<String> supportedProtocols | |
| ApplicationProtocolConfig | back to summary |
|---|---|
| public ApplicationProtocolConfig(ApplicationProtocolConfig. Create a new instance.
| |
| ApplicationProtocolConfig | back to summary |
|---|---|
| public ApplicationProtocolConfig(ApplicationProtocolConfig. Create a new instance.
| |
| ApplicationProtocolConfig | back to summary |
|---|---|
| private ApplicationProtocolConfig(ApplicationProtocolConfig. Create a new instance.
| |
| ApplicationProtocolConfig | back to summary |
|---|---|
| private ApplicationProtocolConfig() A special constructor that is used to instantiate | |
| protocol | back to summary |
|---|---|
| public ApplicationProtocolConfig. Get which application level protocol negotiation to use. | |
| selectedListenerFailureBehavior | back to summary |
|---|---|
| public ApplicationProtocolConfig. Get the desired behavior for the peer who is notified of the selected protocol. | |
| selectorFailureBehavior | back to summary |
|---|---|
| public ApplicationProtocolConfig. Get the desired behavior for the peer who selects the application protocol. | |
| supportedProtocols | back to summary |
|---|---|
| public List The application level protocols supported. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ApplicationProtocolConfig. | |
| public static final ApplicationProtocolConfig. | |
| public static final ApplicationProtocolConfig. | |
| public static final ApplicationProtocolConfig. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ApplicationProtocolConfig. | |
| public static ApplicationProtocolConfig. |
| ALPN | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. | |
| NONE | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. | |
| NPN | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. | |
| NPN_AND_ALPN | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. | |
| Protocol | back to summary |
|---|---|
| private Protocol() | |
| valueOf | back to summary |
|---|---|
| public static ApplicationProtocolConfig. | |
| values | back to summary |
|---|---|
| public static ApplicationProtocolConfig. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ApplicationProtocolConfig. | ACCEPT
If the peer who is notified what protocol was selected determines the selection was not matched, or the peer didn't advertise support for the TLS extension then the handshake will continue and the application protocol is assumed to be accepted. |
| public static final ApplicationProtocolConfig. | CHOOSE_MY_LAST_PROTOCOL
If the peer who is notified what protocol was selected determines the selection was not matched, or the peer didn't advertise support for the TLS extension then the handshake will continue assuming the last protocol supported by this peer is used. |
| public static final ApplicationProtocolConfig. | FATAL_ALERT
If the peer who is notified what protocol was selected determines the selection was not matched, or the peer didn't advertise support for the TLS extension then the handshake will be failed with a fatal alert. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ApplicationProtocolConfig. | |
| public static ApplicationProtocolConfig. |
| ACCEPT | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. If the peer who is notified what protocol was selected determines the selection was not matched, or the peer didn't advertise support for the TLS extension then the handshake will continue and the application protocol is assumed to be accepted. | |
| CHOOSE_MY_LAST_PROTOCOL | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. If the peer who is notified what protocol was selected determines the selection was not matched, or the peer didn't advertise support for the TLS extension then the handshake will continue assuming the last protocol supported by this peer is used. This is used in cases where a "best effort" is desired to talk even if there is no matching protocol, and the assumption is the "most general" fallback protocol is typically listed last. | |
| FATAL_ALERT | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. If the peer who is notified what protocol was selected determines the selection was not matched, or the peer didn't advertise support for the TLS extension then the handshake will be failed with a fatal alert. | |
| SelectedListenerFailureBehavior | back to summary |
|---|---|
| private SelectedListenerFailureBehavior() | |
| valueOf | back to summary |
|---|---|
| public static ApplicationProtocolConfig. | |
| values | back to summary |
|---|---|
| public static ApplicationProtocolConfig. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ApplicationProtocolConfig. | 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. |
| public static final ApplicationProtocolConfig. | 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. |
| public static final ApplicationProtocolConfig. | 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. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ApplicationProtocolConfig. | |
| public static ApplicationProtocolConfig. |
| CHOOSE_MY_LAST_PROTOCOL | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. If the peer who selects the application protocol doesn't find a match it will just select the last protocol it advertised support for. This is used in cases where a "best effort" is desired to talk even if there is no matching protocol, and the assumption is the "most general" fallback protocol is typically listed last. This may be illegal for some RFCs but was observed behavior by some SSL implementations, and is supported for flexibility/compatibility. | |
| FATAL_ALERT | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. 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. For example in the case of ALPN this will result in a no_application_protocol(120) alert. | |
| NO_ADVERTISE | back to summary |
|---|---|
| public static final ApplicationProtocolConfig. 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. This is used in cases where a "best effort" is desired to talk even if there is no matching protocol. | |
| SelectorFailureBehavior | back to summary |
|---|---|
| private SelectorFailureBehavior() | |
| valueOf | back to summary |
|---|---|
| public static ApplicationProtocolConfig. | |
| values | back to summary |
|---|---|
| public static ApplicationProtocolConfig. | |