Conscrypt

Core API for creating and configuring all Conscrypt types.

Members

Static functions

checkAvailability
void checkAvailability()

Checks that the Conscrypt support is available for the system.

getApplicationProtocol
string getApplicationProtocol(SSLEngine engine)

Returns the ALPN protocol agreed upon by client and server.

getApplicationProtocols
string[] getApplicationProtocols(SSLEngine engine)

Gets the application-layer protocols (ALPN) in prioritization order.

isAvailable
bool isAvailable()

Returns {@code true} if the Conscrypt native library has been successfully loaded.

isConscrypt
bool isConscrypt(SSLEngine engine)

Indicates whether the given {@link SSLEngine} was created by this distribution of Conscrypt.

maxEncryptedPacketLength
int maxEncryptedPacketLength()

Returns the maximum length (in bytes) of an encrypted packet.

setApplicationProtocolSelector
void setApplicationProtocolSelector(SSLEngine engine, ApplicationProtocolSelector selector)

Sets an application-provided ALPN protocol selector. If provided, this will override the list of protocols set by {@link #setApplicationProtocols(SSLEngine, string[])}.

setApplicationProtocols
void setApplicationProtocols(SSLEngine engine, string[] protocols)
Undocumented in source. Be warned that the author may not have intended to support it.
setHandshakeListener
void setHandshakeListener(SSLEngine engine, HandshakeListener handshakeListener)

Sets a listener on the given engine for completion of the TLS handshake

Meta