Note
An AsyncSSLConnection wraps a PlainHttpConnection, while an AsyncSSLTunnelConnection wraps a PlainTunnelingConnection. If both these wrapped classes where made to inherit from a common abstraction then it might be possible to merge AsyncSSLConnection and AsyncSSLTunnelConnection back into a single class - and simply use different factory methods to create different wrappees, but this is left up for further cleanup.
| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| protected final SSLEngine | |
| private final List | |
| protected final SSLParameters |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractAsyncSSLConnection(Origin originServer, InetSocketAddress addr, HttpClientImpl client, String[] alpn, String label)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static SSLEngine | |
| private static SSLParameters | Returns: the SSLParameters to be set on the SSLEngine used by this connection.the HttpClient client, List<SNIServerName> the SNIServerName(s) sniServerNames, String[] the application layer protocols alpn)Returns the |
| private static List | Returns: a list ofSNIServerNames to be used by the SSLEngine
of this connection.the serverName,ServerName, typically computed based on the request URIthe client)HttpClientReturns a list of |
| pack-priv final CompletableFuture | |
| pack-priv abstract SSLTube | getConnectionFlow()
Implements abstract jdk. Returns the underlying connection flow, if applicable. |
| pack-priv final SSLEngine | |
| private static AbstractAsyncSSLConnection. | getServerName(final Origin originServer)
Analyse the given origin server and determine if the origin server's host is a literal or not, returning the server's address in String form. |
| public final List | getSNIServerNames()
Overrides jdk. Returns an unmodifiable list of |
| pack-priv final boolean | isSecure()
Implements abstract jdk. Tells whether, or not, this connection is secure ( over SSL ) |
| disableHostnameVerification | back to summary |
|---|---|
| private static final boolean disableHostnameVerification | |
| engine | back to summary |
|---|---|
| protected final SSLEngine engine | |
| sniServerNames | back to summary |
|---|---|
| private final List<SNIServerName> sniServerNames | |
| sslParameters | back to summary |
|---|---|
| protected final SSLParameters sslParameters | |
| AbstractAsyncSSLConnection | back to summary |
|---|---|
| pack-priv AbstractAsyncSSLConnection(Origin originServer, InetSocketAddress addr, HttpClientImpl client, String[] alpn, String label) | |
| contains | back to summary |
|---|---|
| private static boolean contains(String[] rr, String target) | |
| createEngine | back to summary |
|---|---|
| private static SSLEngine createEngine(SSLContext context, String peerHost, int port, SSLParameters sslParameters) | |
| createSSLParameters | back to summary |
|---|---|
| private static SSLParameters createSSLParameters(HttpClientImpl client, List<SNIServerName> sniServerNames, String[] alpn) Returns the
The returned
| |
| formSNIServerNames | back to summary |
|---|---|
| private static List Returns a list of
The given
| |
| getALPN | back to summary |
|---|---|
| pack-priv final CompletableFuture | |
| getConnectionFlow | back to summary |
|---|---|
| pack-priv abstract SSLTube getConnectionFlow() Implements abstract jdk. Doc from jdk. Returns the underlying connection flow, if applicable. | |
| getEngine | back to summary |
|---|---|
| pack-priv final SSLEngine getEngine() | |
| getServerName | back to summary |
|---|---|
| private static AbstractAsyncSSLConnection. Analyse the given origin server and determine if the origin server's host is a literal or not, returning the server's address in String form. | |
| getSNIServerNames | back to summary |
|---|---|
| public final List Overrides jdk. Doc from jdk. Returns an unmodifiable list of
| |
| isSecure | back to summary |
|---|---|
| pack-priv final boolean isSecure() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is secure ( over SSL )
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | isLiteral
Record Component accessed by isLiteral(). |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public boolean | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| isLiteral | back to summary |
|---|---|
| private final boolean isLiteral Record Component accessed by isLiteral(). | |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). | |
| ServerName | back to summary |
|---|---|
| private ServerName(String name, boolean isLiteral) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Record Component getter of isLiteral. | |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |