APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.ssl

pack-priv final Class SSLSocketInputRecord

extends InputRecord
implements SSLRecord
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLRecord, sun.security.ssl.Record
Imports
java.io.EOFException, .IOException, .InputStream, .OutputStream, java.net.SocketTimeoutException, java.nio.ByteBuffer, java.security.GeneralSecurityException, java.util.ArrayList, javax.crypto.BadPaddingException, javax.net.ssl.SSLException, .SSLHandshakeException, .SSLProtocolException, sun.security.ssl.SSLCipher.SSLReadCipher

InputRecord implementation for SSLSocket.
Author
David Brownell

Field Summary

Modifier and TypeField and Description
private boolean
private ByteBuffer
private final byte[]
private int
private InputStream
private OutputStream
private ByteBuffer
Inherited from sun.security.ssl.InputRecord:
fragmentSizehandshakeHashhelloVersionisClosedreadCipherrecordLocktc

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv Plaintext[]
decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength)

Implements abstract sun.security.ssl.InputRecord.decode.

private Plaintext[]
pack-priv void
deplete(boolean tryToRead)

private Plaintext[]
private static int
read(InputStream is, byte[] buf, int off, int len)

private int
readFully(int len)

private int
pack-priv void
pack-priv void
Inherited from sun.security.ssl.InputRecord:
acquirePlaintextbytesInCompletePacketchangeFragmentSizechangeReadCipherscloseconvertToClientHelloestimateFragmentSizeexpectingFinishFlightextractfinishHandshakeisClosedisEmptyseqNumIsHugesetHelloVersion

Field Detail

formatVerifiedback to summary
private boolean formatVerified
handshakeBufferback to summary
private ByteBuffer handshakeBuffer
headerOffback to summary
private int headerOff
isback to summary
private InputStream is
osback to summary
private OutputStream os
recordBodyback to summary
private ByteBuffer recordBody

Constructor Detail

SSLSocketInputRecordback to summary
pack-priv SSLSocketInputRecord(HandshakeHash handshakeHash)

Method Detail

bytesInCompletePacketback to summary
pack-priv int bytesInCompletePacket() throws IOException

Overrides sun.security.ssl.InputRecord.bytesInCompletePacket.

Annotations
@Override
decodeback to summary
pack-priv Plaintext[] decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength) throws IOException, BadPaddingException

Implements abstract sun.security.ssl.InputRecord.decode.

Annotations
@Override
decodeInputRecordback to summary
private Plaintext[] decodeInputRecord() throws IOException, BadPaddingException
depleteback to summary
pack-priv void deplete(boolean tryToRead) throws IOException
handleUnknownRecordback to summary
private Plaintext[] handleUnknownRecord() throws IOException
readback to summary
private static int read(InputStream is, byte[] buf, int off, int len) throws IOException
readFullyback to summary
private int readFully(int len) throws IOException
readHeaderback to summary
private int readHeader() throws IOException
setDeliverStreamback to summary
pack-priv void setDeliverStream(OutputStream outputStream)

Overrides sun.security.ssl.InputRecord.setDeliverStream.

Annotations
@Override
setReceiverStreamback to summary
pack-priv void setReceiverStream(InputStream inputStream)

Overrides sun.security.ssl.InputRecord.setReceiverStream.

Annotations
@Override