interface SSLTransport
| 限定符和类型 | 方法和说明 |
|---|---|
static Plaintext |
decode(TransportContext context,
ByteBuffer[] srcs,
int srcsOffset,
int srcsLength,
ByteBuffer[] dsts,
int dstsOffset,
int dstsLength)
Decodes an array of SSL/TLS network source data into the
destination application data buffers.
|
String |
getPeerHost()
Returns the host name of the peer.
|
int |
getPeerPort()
Returns the port number of the peer.
|
default void |
shutdown()
Shutdown the transport.
|
boolean |
useDelegatedTask()
Return true if delegated tasks used for handshaking operations.
|
String getPeerHost()
int getPeerPort()
default void shutdown()
throws IOException
IOExceptionboolean useDelegatedTask()
static Plaintext decode(TransportContext context, ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException
context - the transportation contextsrcs - an array of ByteBuffers containing the
inbound network datasrcsOffset - 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 - The maximum number of srcs buffers to be
accessed; it must be non-negative and no larger than
srcs.length - srcsOffset.dsts - an array of ByteBuffers to hold inbound
application datadstsOffset - 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 - The maximum number of dsts buffers to be
accessed; it must be non-negative and no larger than
dsts.length - dstsOffset.Plaintext describing the result of
the operationIOException - if a problem was encountered while receiving or
decoding networking dataCopyright © 2023. All rights reserved.