Conscrypt class.
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final byte[] | getAlpnSelectedProtocol()
Implements abstract org.
Deprecated
use
Returns the protocol agreed upon by client and server, or getApplicationProtocol() instead.
null if
no protocol was agreed upon.
|
| public abstract byte[] | getChannelId()
Implements abstract org. |
| public FileDescriptor | |
| public abstract SSLSession | getHandshakeSession()
Implements abstract org. SSLSession being constructed during a SSL/TLS
handshake.
|
| public String | getHostname()
Overrides org. |
| public String | getHostnameOrIP()
Overrides org. |
| public final byte[] | getNpnSelectedProtocol()
Overrides org.
Deprecated
NPN is not supported
Returns null always for backward compatibility.
|
| public int | getSoWriteTimeout()
Overrides org. |
| public final void | setAlpnProtocols(String[]
the list of ALPN protocols alpnProtocols)Implements abstract org.
Deprecated
use
Sets the list of ALPN protocols.
setApplicationProtocols(String[]) instead.
|
| public final void | setAlpnProtocols(byte[]
the encoded form of the ALPN protocol list protocols)Implements abstract org.
Deprecated
Use
Alternate version of setAlpnProtocols(String[]) instead.
setAlpnProtocols(String[]) that directly sets the list of
ALPN in the wire-format form used by BoringSSL (length-prefixed 8-bit strings).
|
| public abstract void | setChannelIdEnabled(boolean enabled)
Implements abstract org. |
| public abstract void | setChannelIdPrivateKey(PrivateKey
private key (enables TLS Channel ID) or privateKey)null for no key (disables
TLS Channel ID). The private key must be an Elliptic Curve (EC) key based on the NIST
P-256 curve (aka SECG secp256r1 or ANSI X9.62 prime256v1).Implements abstract org. PrivateKey to be used for TLS Channel ID by this client socket.
|
| public void | setHandshakeTimeout(int handshakeTimeoutMilliseconds)
Overrides org. |
| public void | setHostname(String
the desired SNI hostname, or null to disable hostname)Overrides org. |
| public final void | setNpnProtocols(byte[] npnProtocols)
Overrides org.
Deprecated
NPN is not supported
This method does nothing and is kept for backward compatibility.
|
| public void | setSoWriteTimeout(int writeTimeoutMilliseconds)
Overrides org. |
| public abstract void | setUseSessionTickets(boolean
True to enable session tickets useSessionTickets)Implements abstract org. |
| OpenSSLSocketImpl | back to summary |
|---|---|
| pack-priv OpenSSLSocketImpl() throws IOException | |
| OpenSSLSocketImpl | back to summary |
|---|---|
| pack-priv OpenSSLSocketImpl(String hostname, int port) throws IOException | |
| OpenSSLSocketImpl | back to summary |
|---|---|
| pack-priv OpenSSLSocketImpl(InetAddress address, int port) throws IOException | |
| OpenSSLSocketImpl | back to summary |
|---|---|
| pack-priv OpenSSLSocketImpl(String hostname, int port, InetAddress clientAddress, int clientPort) throws IOException | |
| OpenSSLSocketImpl | back to summary |
|---|---|
| pack-priv OpenSSLSocketImpl(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException | |
| OpenSSLSocketImpl | back to summary |
|---|---|
| pack-priv OpenSSLSocketImpl(Socket socket, String hostname, int port, boolean autoClose) throws IOException | |
| getAlpnSelectedProtocol | back to summary |
|---|---|
| public final byte[] getAlpnSelectedProtocol() Implements abstract org. Doc from org. Deprecated use Returns the protocol agreed upon by client and server, or
| |
| getChannelId | back to summary |
|---|---|
| public abstract byte[] getChannelId() throws SSLException Implements abstract org. Doc from org. Gets the TLS Channel ID for this server socket. Channel ID is only available once the handshake completes.
| |
| getFileDescriptor$ | back to summary |
|---|---|
| public FileDescriptor getFileDescriptor$() Overrides org.
| |
| getHandshakeSession | back to summary |
|---|---|
| public abstract SSLSession getHandshakeSession() Implements abstract org. Doc from javax. Returns the
TLS protocols may negotiate parameters that are needed when using
an instance of this class, but before the
This method provides early access to the
Unlike
| |
| getHostname | back to summary |
|---|---|
| public String getHostname() Overrides org. Doc from org. Returns the hostname that was supplied during socket creation. No DNS resolution is attempted before returning the hostname.
| |
| getHostnameOrIP | back to summary |
|---|---|
| public String getHostnameOrIP() Overrides org. Doc from org. For the purposes of an SSLSession, we want a way to represent the supplied hostname or the IP address in a textual representation. We do not want to perform reverse DNS lookups on this address.
| |
| getNpnSelectedProtocol | back to summary |
|---|---|
| public final byte[] getNpnSelectedProtocol() Overrides org. Doc from org. Deprecated NPN is not supported Returns null always for backward compatibility.
| |
| getSoWriteTimeout | back to summary |
|---|---|
| public int getSoWriteTimeout() throws SocketException Overrides org. Doc from org. Note write timeouts are not part of the javax.net.ssl.SSLSocket API
| |
| setAlpnProtocols | back to summary |
|---|---|
| public final void setAlpnProtocols(String[] alpnProtocols) Implements abstract org. Doc from org. Deprecated use Sets the list of ALPN protocols. This method internally converts the protocols to their wire-format form.
| |
| setAlpnProtocols | back to summary |
|---|---|
| public final void setAlpnProtocols(byte[] protocols) Implements abstract org. Doc from org. Deprecated Use Alternate version of
| |
| setChannelIdEnabled | back to summary |
|---|---|
| public abstract void setChannelIdEnabled(boolean enabled) Implements abstract org. Doc from org. Enables/disables TLS Channel ID for this server socket. This method needs to be invoked before the handshake starts.
| |
| setChannelIdPrivateKey | back to summary |
|---|---|
| public abstract void setChannelIdPrivateKey(PrivateKey privateKey) Implements abstract org. Doc from org. Sets the This method needs to be invoked before the handshake starts.
| |
| setHandshakeTimeout | back to summary |
|---|---|
| public void setHandshakeTimeout(int handshakeTimeoutMilliseconds) throws SocketException Overrides org. Doc from org. Set the handshake timeout on this socket. This timeout is specified in milliseconds and will be used only during the handshake process.
| |
| setHostname | back to summary |
|---|---|
| public void setHostname(String hostname) Overrides org. Doc from org. This method enables Server Name Indication | |
| setNpnProtocols | back to summary |
|---|---|
| public final void setNpnProtocols(byte[] npnProtocols) Overrides org. Doc from org. Deprecated NPN is not supported This method does nothing and is kept for backward compatibility.
| |
| setSoWriteTimeout | back to summary |
|---|---|
| public void setSoWriteTimeout(int writeTimeoutMilliseconds) throws SocketException Overrides org. Doc from org. Note write timeouts are not part of the javax.net.ssl.SSLSocket API
| |
| setUseSessionTickets | back to summary |
|---|---|
| public abstract void setUseSessionTickets(boolean useSessionTickets) Implements abstract org. Doc from org. This method enables session ticket support.
| |