Extensions to SSLSocket include:
| Modifier and Type | Class and Description |
|---|---|
| private class | ConscryptFileDescriptorSocket.SSLInputStream
This inner class provides input data stream functionality for the OpenSSL native implementation. |
| private class | ConscryptFileDescriptorSocket.SSLOutputStream
This inner class provides output data stream functionality for the OpenSSL native implementation. |
| Modifier and Type | Field and Description |
|---|---|
| private final ActiveSession | |
| private OpenSSLKey | channelIdPrivateKey
Private key for the TLS Channel ID extension. |
| private SessionSnapshot | closedSession
A snapshot of the active session when the engine was closed. |
| private static final boolean | |
| private final SSLSession | externalSession
The session object exposed externally from this class. |
| private final Object | |
| private int | |
| private ConscryptFileDescriptorSocket. | is
Protected by synchronizing on ssl. |
| private ConscryptFileDescriptorSocket. | os
Protected by synchronizing on ssl. |
| private final NativeSsl | ssl
Wrapper around the underlying SSL object. |
| private final SSLParametersImpl | |
| private int | state
Hides java. |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | ConscryptFileDescriptorSocket(String hostname, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)
|
| pack-priv | ConscryptFileDescriptorSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)
|
| pack-priv | ConscryptFileDescriptorSocket(Socket socket, String hostname, int port, boolean autoClose, SSLParametersImpl sslParameters)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public final String | chooseClientAlias(X509KeyManager keyManager, X500Principal[] issuers, String[] keyTypes)
Implements org. |
| public final String | chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint)
Implements org.
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| public final String | chooseServerAlias(X509KeyManager keyManager, String keyType)
Implements org. |
| public final String | chooseServerPSKIdentityHint(PSKKeyManager keyManager)
Implements org.
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| public final void | clientCertificateRequested(byte[]
key types supported by the server,
convertible to strings with #keyType keyTypeBytes, int[] signatureAlgs, byte[][] CAs known to the server asn1DerEncodedPrincipals)Implements org. |
| public final int | clientPSKKeyRequested(String
PSK identity hint provided by the server or identityHint, byte[] null if no hint
provided.buffer to be populated with PSK identity (NULL-terminated modified UTF-8)
by this method. This identity will be provided to the server. identity, byte[] buffer to be populated with key material by this method. key)Implements org. |
| private ClientSessionContext | |
| public final void | close()
Overrides org. Implements java. |
| private void | |
| pack-priv byte[] | exportKeyingMaterial(String
the label to use in calculating the exported value. This must be
an ASCII-only string. label, byte[] the application-specific context value to use in calculating the
exported value. This may be context, int null to use no application context, which is
treated differently than an empty byte array.the number of bytes of keying material to return. length)Implements abstract org. |
| protected final void | finalize()
Overrides java. |
| private void | |
| pack-priv final SSLSession | getActiveSession()
Implements abstract org. notifyHandshakeCompletedListeners() to get the currently active session.
|
| public final String | getApplicationProtocol()
Implements abstract org. |
| pack-priv final String[] | getApplicationProtocols()
Implements abstract org. |
| public final byte[] | Returns: channel ID ornull if not available.Implements abstract org. |
| public final String[] | getEnabledCipherSuites()
Implements abstract javax. |
| public final String[] | getEnabledProtocols()
Implements abstract javax. |
| public final boolean | getEnableSessionCreation()
Implements abstract javax. |
| public final String | getHandshakeApplicationProtocol()
Implements abstract org. |
| public final SSLSession | getHandshakeSession()
Implements abstract org. SSLSession being constructed during a SSL/TLS
handshake.
|
| public final InputStream | getInputStream()
Overrides org. |
| public final boolean | getNeedClientAuth()
Implements abstract javax. |
| public final OutputStream | getOutputStream()
Overrides org. |
| public final SecretKey | getPSKKey(PSKKeyManager keyManager, String identityHint, String identity)
Implements org.
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| public final SSLSession | getSession()
Implements abstract javax. |
| public final int | getSoWriteTimeout()
Overrides org. |
| public final SSLParameters | getSSLParameters()
Overrides javax. |
| public final String[] | getSupportedCipherSuites()
Implements abstract javax. |
| public final String[] | getSupportedProtocols()
Implements abstract javax. |
| pack-priv byte[] | getTlsUnique()
Implements abstract org. |
| public final boolean | getUseClientMode()
Implements abstract javax. |
| public final boolean | getWantClientAuth()
Implements abstract javax. |
| private static NativeSsl | |
| public final void | onNewSessionEstablished(long sslSessionNativePtr)
Implements org. |
| public final void | onSSLStateChange(int type, int val)
Implements org. |
| private ConscryptSession | |
| private ConscryptSession | |
| private ConscryptSession | |
| public int | selectApplicationProtocol(byte[]
list of application protocols in length-prefix format protocols)Implements org. ApplicationProtocolSelectorAdapter associated with it, and the application protocol
needs to be selected.
|
| public final void | serverCertificateRequested()
Implements org. |
| public final int | serverPSKKeyRequested(String
PSK identity hint provided by this server to the client or
identityHint, String null if no hint was provided.PSK identity provided by the client. identity, byte[] buffer to be populated with key material by this method. key)Implements org. |
| public final long | serverSessionRequested(byte[]
the ID of the session to find. id)Implements org. |
| private AbstractSessionContext | |
| pack-priv final void | setApplicationProtocols(String[]
the list of ALPN protocols protocols)Implements abstract org. |
| public final void | setApplicationProtocolSelector(ApplicationProtocolSelector selector)
Implements abstract org. |
| pack-priv final void | |
| public final void | setChannelIdEnabled(boolean enabled)
Implements abstract org. |
| public final 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 final void | setEnabledCipherSuites(String[]
Names of all the cipher suites to enable suites)Implements abstract javax. |
| public final void | setEnabledProtocols(String[]
Names of all the protocols to enable. protocols)Implements abstract javax. |
| public final void | setEnableSessionCreation(boolean
true indicates that sessions may be created; this
is the default. false indicates that an existing session
must be resumed flag)Implements abstract javax. |
| public final void | setHandshakeTimeout(int handshakeTimeoutMilliseconds)
Overrides org. |
| public final void | setHostname(String
the desired SNI hostname, or null to disable hostname)Overrides org. |
| public final void | setNeedClientAuth(boolean
set to true if client authentication is required,
or false if no client authentication is desired. need)Implements abstract javax. |
| public final void | setSoWriteTimeout(int writeTimeoutMilliseconds)
Overrides org. |
| public final void | setSSLParameters(SSLParameters
the parameters p)Overrides javax. |
| public final void | setUseClientMode(boolean
true if the socket should start its handshaking
in "client" mode mode)Implements abstract javax. |
| public final void | setUseSessionTickets(boolean
True to enable session tickets useSessionTickets)Implements abstract org. |
| public final void | setWantClientAuth(boolean
set to true if client authentication is requested,
or false if no client authentication is desired. want)Implements abstract javax. |
| private void | |
| public final void | startHandshake()
Implements abstract javax. |
| private void | |
| public final void | verifyCertificateChain(byte[][]
chain of X.509 certificates in their encoded form certChain, String auth algorithm name authMethod)Implements org. |
| private void |