AbstractConscryptEngine

Abstract base class for all Conscrypt {@link SSLEngine} classes.

Members

Functions

getApplicationProtocol
string getApplicationProtocol()
Undocumented in source.
getApplicationProtocols
string[] getApplicationProtocols()

Returns the list of supported ALPN protocols.

getHandshakeApplicationProtocol
string getHandshakeApplicationProtocol()
Undocumented in source.
getHostname
string getHostname()

Returns the hostname from {@link #setHostname(string)} or supplied by the {@link PeerInfoProvider} upon creation. No DNS resolution is attempted before returning the hostname.

getPeerHost
string getPeerHost()
Undocumented in source.
getPeerPort
int getPeerPort()
Undocumented in source.
handshakeSession
SSLSession handshakeSession()

Work-around to allow this method to be called on older versions of Android.

maxSealOverhead
int maxSealOverhead()

Returns the maximum overhead, in bytes, of sealing a record with SSL.

setApplicationProtocolSelector
void setApplicationProtocolSelector(ApplicationProtocolSelector selector)
Undocumented in source.
setApplicationProtocols
void setApplicationProtocols(string[] protocols)

Sets the list of ALPN protocols.

setHandshakeListener
void setHandshakeListener(HandshakeListener handshakeListener)

Sets the listener for the completion of the TLS handshake.

setHostname
void setHostname(string hostname)

This method enables Server Name Indication (SNI) and overrides the {@link PeerInfoProvider} supplied during engine creation.

setUseSessionTickets
void setUseSessionTickets(bool useSessionTickets)

This method enables session ticket support.

unwrap
SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst)
Undocumented in source.
unwrap
SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts)
Undocumented in source.
unwrap
SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length)
Undocumented in source.
unwrap
SSLEngineResult unwrap(ByteBuffer[] srcs, ByteBuffer[] dsts)
Undocumented in source.
unwrap
SSLEngineResult unwrap(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength)
Undocumented in source.
wrap
SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst)
Undocumented in source.
wrap
SSLEngineResult wrap(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer dst)
Undocumented in source.

Meta