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

pack-priv final Class SSLEngineOutputRecord

extends OutputRecord
implements SSLRecord
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLRecord, sun.security.ssl.Record
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.LinkedList, javax.net.ssl.SSLHandshakeException, sun.security.ssl.SSLCipher.SSLWriteCipher

OutputRecord implementation for SSLEngine.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private SSLEngineOutputRecord.HandshakeFragment
private volatile boolean
private boolean
private ByteBuffer
Inherited from sun.security.ssl.OutputRecord:
firstMessagehandshakeHashhelloVersionisClosedisFirstAppOutputRecordpacketSizeprotocolVersionrecordLocktcwriteCipher

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Ciphertext
public void
close()

Overrides sun.security.ssl.OutputRecord.close.

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

pack-priv void
pack-priv Ciphertext
encode(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength)

Overrides sun.security.ssl.OutputRecord.encode.

private Ciphertext
encode(ByteBuffer[] sources, int offset, int length, ByteBuffer destination)

pack-priv void
encodeAlert(byte level, byte description)

Implements abstract sun.security.ssl.OutputRecord.encodeAlert.

pack-priv void
pack-priv void
encodeHandshake(byte[] source, int offset, int length)

Implements abstract sun.security.ssl.OutputRecord.encodeHandshake.

pack-priv void
pack-priv boolean
pack-priv boolean
pack-priv boolean
Inherited from sun.security.ssl.OutputRecord:
calculateFragmentSizechangeFragmentSizechangePacketSizechangeWriteCipherschangeWriteCiphersdeliverencodeV2ClientHelloencryptencryptfinishHandshakegetHandshakeMessagegetHandshakeMessageKeySpacegetMaxPacketSizeinitHandshakerlaunchRetransmissionseqNumIsHugesetDeliverStreamsetHelloVersionsetVersion

Field Detail

fragmenterback to summary
private SSLEngineOutputRecord.HandshakeFragment fragmenter
isCloseWaitingback to summary
private volatile boolean isCloseWaiting
isTalkingToV2back to summary
private boolean isTalkingToV2
v2ClientHelloback to summary
private ByteBuffer v2ClientHello

Constructor Detail

SSLEngineOutputRecordback to summary
pack-priv SSLEngineOutputRecord(HandshakeHash handshakeHash)

Method Detail

acquireCiphertextback to summary
private Ciphertext acquireCiphertext(ByteBuffer destination) throws IOException
closeback to summary
public void close() throws IOException

Overrides sun.security.ssl.OutputRecord.close.

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
disposeWriteCipherback to summary
pack-priv void disposeWriteCipher()

Overrides sun.security.ssl.OutputRecord.disposeWriteCipher.

Annotations
@Override
encodeback to summary
pack-priv Ciphertext encode(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException

Overrides sun.security.ssl.OutputRecord.encode.

Annotations
@Override
encodeback to summary
private Ciphertext encode(ByteBuffer[] sources, int offset, int length, ByteBuffer destination) throws IOException
encodeAlertback to summary
pack-priv void encodeAlert(byte level, byte description)

Implements abstract sun.security.ssl.OutputRecord.encodeAlert.

Annotations
@Override
encodeChangeCipherSpecback to summary
pack-priv void encodeChangeCipherSpec()

Implements abstract sun.security.ssl.OutputRecord.encodeChangeCipherSpec.

Annotations
@Override
encodeHandshakeback to summary
pack-priv void encodeHandshake(byte[] source, int offset, int length)

Implements abstract sun.security.ssl.OutputRecord.encodeHandshake.

Annotations
@Override
encodeV2NoCipherback to summary
pack-priv void encodeV2NoCipher()

Overrides sun.security.ssl.OutputRecord.encodeV2NoCipher.

Annotations
@Override
isClosedback to summary
pack-priv boolean isClosed()

Overrides sun.security.ssl.OutputRecord.isClosed.

isEmptyback to summary
pack-priv boolean isEmpty()

Overrides sun.security.ssl.OutputRecord.isEmpty.

Annotations
@Override
needToSplitPayloadback to summary
pack-priv boolean needToSplitPayload()
sun.security.ssl back to summary

pack-priv final Class SSLEngineOutputRecord.HandshakeFragment

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final LinkedList<SSLEngineOutputRecord.RecordMemo>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Ciphertext
pack-priv boolean
pack-priv void
queueUpAlert(byte level, byte description)

pack-priv void
pack-priv void
pack-priv void
queueUpFragment(byte[] source, int offset, int length)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handshakeMemosback to summary
private final LinkedList<SSLEngineOutputRecord.RecordMemo> handshakeMemos

Constructor Detail

HandshakeFragmentback to summary
pack-priv HandshakeFragment()

Method Detail

acquireCiphertextback to summary
pack-priv Ciphertext acquireCiphertext(ByteBuffer dstBuf) throws IOException
isEmptyback to summary
pack-priv boolean isEmpty()
queueUpAlertback to summary
pack-priv void queueUpAlert(byte level, byte description)
queueUpChangeCipherSpecback to summary
pack-priv void queueUpChangeCipherSpec()
queueUpCipherDisposeback to summary
pack-priv void queueUpCipherDispose()
queueUpFragmentback to summary
pack-priv void queueUpFragment(byte[] source, int offset, int length)
sun.security.ssl back to summary

private Class SSLEngineOutputRecord.HandshakeMemo

extends RecordMemo
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv byte
Inherited from sun.security.ssl.SSLEngineOutputRecord.RecordMemo:
contentTypedisposeCipherencodeCipherfragmentmajorVersionminorVersion

Constructor Summary

AccessConstructor and Description
private

Field Detail

acquireOffsetback to summary
pack-priv int acquireOffset
handshakeTypeback to summary
pack-priv byte handshakeType

Constructor Detail

HandshakeMemoback to summary
private HandshakeMemo()
sun.security.ssl back to summary

private Class SSLEngineOutputRecord.RecordMemo

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.SSLEngineOutputRecord.HandshakeMemo

Field Summary

Modifier and TypeField and Description
pack-priv byte
pack-priv boolean
pack-priv SSLCipher.SSLWriteCipher
pack-priv byte[]
pack-priv byte
pack-priv byte

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentTypeback to summary
pack-priv byte contentType
disposeCipherback to summary
pack-priv boolean disposeCipher
encodeCipherback to summary
pack-priv SSLCipher.SSLWriteCipher encodeCipher
fragmentback to summary
pack-priv byte[] fragment
majorVersionback to summary
pack-priv byte majorVersion
minorVersionback to summary
pack-priv byte minorVersion

Constructor Detail

RecordMemoback to summary
private RecordMemo()