final class SSLSocketInputRecord extends InputRecord implements SSLRecord
InputRecord implementation for SSLSocket.| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
formatVerified |
private ByteBuffer |
handshakeBuffer |
private boolean |
hasHeader |
private InputStream |
is |
private OutputStream |
os |
private byte[] |
temporary |
fragmentSize, handshakeHash, helloVersion, isClosed, readCipher, tchandshakeHeaderSize, headerPlusMaxIVSize, headerSize, maxLargeRecordSize, maxPlaintextPlusSize, maxRecordSize, v2NoCipherenableCBCProtection, maxDataSize, maxFragmentSize, maxIVLength, maxMacSize, maxPadding, OVERFLOW_OF_INT08, OVERFLOW_OF_INT16, OVERFLOW_OF_INT24| 构造器和说明 |
|---|
SSLSocketInputRecord(HandshakeHash handshakeHash) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) int |
bytesInCompletePacket() |
(专用程序包) Plaintext[] |
decode(ByteBuffer[] srcs,
int srcsOffset,
int srcsLength) |
private Plaintext[] |
decodeInputRecord(byte[] header) |
(专用程序包) void |
deplete(boolean tryToRead) |
private Plaintext[] |
handleUnknownRecord(byte[] header) |
private static int |
read(InputStream is,
byte[] buffer,
int offset,
int len) |
(专用程序包) void |
setDeliverStream(OutputStream outputStream) |
(专用程序包) void |
setReceiverStream(InputStream inputStream) |
bytesInCompletePacket, changeFragmentSize, changeReadCiphers, close, convertToClientHello, estimateFragmentSize, extract, isClosed, seqNumIsHuge, setHelloVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytes16, getBytes24, getBytes8, getInt16, getInt24, getInt32, getInt8, putBytes16, putBytes24, putBytes8, putInt16, putInt24, putInt32, putInt8, verifyLengthprivate InputStream is
private OutputStream os
private final byte[] temporary
private boolean formatVerified
private ByteBuffer handshakeBuffer
private boolean hasHeader
SSLSocketInputRecord(HandshakeHash handshakeHash)
int bytesInCompletePacket()
throws IOException
bytesInCompletePacket 在类中 InputRecordIOExceptionPlaintext[] decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength) throws IOException, BadPaddingException
decode 在类中 InputRecordIOExceptionBadPaddingExceptionvoid setReceiverStream(InputStream inputStream)
setReceiverStream 在类中 InputRecordvoid setDeliverStream(OutputStream outputStream)
setDeliverStream 在类中 InputRecordprivate Plaintext[] decodeInputRecord(byte[] header) throws IOException, BadPaddingException
private Plaintext[] handleUnknownRecord(byte[] header) throws IOException, BadPaddingException
private static int read(InputStream is, byte[] buffer, int offset, int len) throws IOException
IOExceptionvoid deplete(boolean tryToRead)
throws IOException
IOExceptionCopyright © 2023. All rights reserved.