abstract class InputRecord extends Object implements Record, Closeable
InputRecord takes care of the management of SSL/TLS input
records, including buffering, decryption, handshake messages marshal, etc.| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) int |
fragmentSize |
(专用程序包) HandshakeHash |
handshakeHash |
(专用程序包) ProtocolVersion |
helloVersion |
(专用程序包) boolean |
isClosed |
(专用程序包) SSLCipher.SSLReadCipher |
readCipher |
(专用程序包) TransportContext |
tc |
enableCBCProtection, maxDataSize, maxFragmentSize, maxIVLength, maxMacSize, maxPadding, OVERFLOW_OF_INT08, OVERFLOW_OF_INT16, OVERFLOW_OF_INT24| 构造器和说明 |
|---|
InputRecord(HandshakeHash handshakeHash,
SSLCipher.SSLReadCipher readCipher) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) int |
bytesInCompletePacket() |
(专用程序包) int |
bytesInCompletePacket(ByteBuffer[] srcs,
int srcsOffset,
int srcsLength) |
(专用程序包) void |
changeFragmentSize(int fragmentSize) |
(专用程序包) void |
changeReadCiphers(SSLCipher.SSLReadCipher readCipher) |
void |
close()
Prevent any more data from being read into this record,
and flag the record as holding no data.
|
(专用程序包) static ByteBuffer |
convertToClientHello(ByteBuffer packet) |
(专用程序包) abstract Plaintext[] |
decode(ByteBuffer[] srcs,
int srcsOffset,
int srcsLength) |
(专用程序包) int |
estimateFragmentSize(int packetSize) |
(专用程序包) static ByteBuffer |
extract(ByteBuffer[] buffers,
int offset,
int length,
int headerSize) |
(专用程序包) boolean |
isClosed() |
(专用程序包) boolean |
seqNumIsHuge() |
(专用程序包) void |
setDeliverStream(OutputStream outputStream) |
(专用程序包) void |
setHelloVersion(ProtocolVersion helloVersion) |
(专用程序包) void |
setReceiverStream(InputStream inputStream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytes16, getBytes24, getBytes8, getInt16, getInt24, getInt32, getInt8, putBytes16, putBytes24, putBytes8, putInt16, putInt24, putInt32, putInt8, verifyLengthSSLCipher.SSLReadCipher readCipher
TransportContext tc
final HandshakeHash handshakeHash
boolean isClosed
ProtocolVersion helloVersion
int fragmentSize
InputRecord(HandshakeHash handshakeHash, SSLCipher.SSLReadCipher readCipher)
void setHelloVersion(ProtocolVersion helloVersion)
boolean seqNumIsHuge()
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionboolean isClosed()
void changeReadCiphers(SSLCipher.SSLReadCipher readCipher)
void changeFragmentSize(int fragmentSize)
int bytesInCompletePacket(ByteBuffer[] srcs, int srcsOffset, int srcsLength) throws IOException
IOExceptionint bytesInCompletePacket()
throws IOException
IOExceptionvoid setReceiverStream(InputStream inputStream)
abstract Plaintext[] decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength) throws IOException, BadPaddingException
void setDeliverStream(OutputStream outputStream)
int estimateFragmentSize(int packetSize)
static ByteBuffer convertToClientHello(ByteBuffer packet)
static ByteBuffer extract(ByteBuffer[] buffers, int offset, int length, int headerSize)
Copyright © 2023. All rights reserved.