APIdia Launch Partner
Top Description Methods
sun.security.ssl

pack-priv Interface SSLTransport

Known Direct Implementers
sun.security.ssl.QuicTLSEngineImpl, sun.security.ssl.SSLEngineImpl, sun.security.ssl.SSLSocketImpl
Imports
java.io.EOFException, .IOException, java.net.SocketException, .SocketTimeoutException, java.nio.ByteBuffer, javax.crypto.AEADBadTagException, .BadPaddingException, javax.net.ssl.SSLHandshakeException

Interface for SSL/(D)TLS transportation.

Method Summary

Modifier and TypeMethod and Description
public static Plaintext

Returns:

a Plaintext describing the result of the operation
decode
(TransportContext
the transportation context
context
,
ByteBuffer[]
an array of ByteBuffers containing the inbound network data
srcs
,
int
The offset within the srcs buffer array of the first buffer from which bytes are to be retrieved; it must be non-negative and no larger than srcs.length.
srcsOffset
,
int
The maximum number of srcs buffers to be accessed; it must be non-negative and no larger than srcs.length - srcsOffset.
srcsLength
,
ByteBuffer[]
an array of ByteBuffers to hold inbound application data
dsts
,
int
The offset within the dsts buffer array of the first buffer from which bytes are to be placed; it must be non-negative and no larger than dsts.length.
dstsOffset
,
int
The maximum number of dsts buffers to be accessed; it must be non-negative and no larger than dsts.length - dstsOffset.
dstsLength
)

Decodes an array of SSL/(D)TLS network source data into the destination application data buffers.

public String

Returns:

the host name of the peer, or null if nothing is available.
getPeerHost
()

Returns the host name of the peer.

public int

Returns:

the port number of the peer, or -1 if nothing is available.
getPeerPort
()

Returns the port number of the peer.

public default void
shutdown()

Shutdown the transport.

public boolean

Returns:

true if delegated tasks used for handshaking operations.
useDelegatedTask
()

Return true if delegated tasks used for handshaking operations.

Method Detail

decodeback to summary
public static Plaintext decode(TransportContext context, ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException

Decodes an array of SSL/(D)TLS network source data into the destination application data buffers. For SSL/TLS connections, if no source data, the network data may be received from the underlying SSL/TLS input stream.

Parameters
context:TransportContext

the transportation context

srcs:ByteBuffer[]

an array of ByteBuffers containing the inbound network data

srcsOffset:int

The offset within the srcs buffer array of the first buffer from which bytes are to be retrieved; it must be non-negative and no larger than srcs.length.

srcsLength:int

The maximum number of srcs buffers to be accessed; it must be non-negative and no larger than srcs.length - srcsOffset.

dsts:ByteBuffer[]

an array of ByteBuffers to hold inbound application data

dstsOffset:int

The offset within the dsts buffer array of the first buffer from which bytes are to be placed; it must be non-negative and no larger than dsts.length.

dstsLength:int

The maximum number of dsts buffers to be accessed; it must be non-negative and no larger than dsts.length - dstsOffset.

Returns:Plaintext

a Plaintext describing the result of the operation

Exceptions
IOException:
if a problem was encountered while receiving or decoding networking data
getPeerHostback to summary
public String getPeerHost()

Returns the host name of the peer.

Returns:String

the host name of the peer, or null if nothing is available.

getPeerPortback to summary
public int getPeerPort()

Returns the port number of the peer.

Returns:int

the port number of the peer, or -1 if nothing is available.

shutdownback to summary
public default void shutdown() throws IOException

Shutdown the transport.

useDelegatedTaskback to summary
public boolean useDelegatedTask()

Return true if delegated tasks used for handshaking operations.

Returns:boolean

true if delegated tasks used for handshaking operations.