InputRecord implementation for SSLEngine.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private DTLSInputRecord. | |
| private SSLContextImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Plaintext | |
| pack-priv int | bytesInCompletePacket(ByteBuffer[] srcs, int srcsOffset, int srcsLength)
Overrides sun.
|
| private int | |
| pack-priv void | changeReadCiphers(SSLCipher.
Overrides sun.
|
| public void | close()
Overrides sun. Implements java. Prevent any more data from being read into this record, and flag the record as holding no data. |
| pack-priv Plaintext[] | decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength)
Implements abstract sun.
|
| pack-priv Plaintext[] | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| private static DTLSInputRecord. | parseHandshakeMessage(byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, ByteBuffer plaintextFragment)
|
| public void | |
| public void | |
| private static DTLSInputRecord. | Returns: a truncated handshake fragment that is sized to look like a complete message, but actually contains only up to the compression methods (no extensions)the fragment actually received by the DTLSReassembler srcFrag,the size of the new, cloned/truncated handshake fragment limit)Turn a sufficiently-large initial ClientHello fragment into one that stops immediately after the compression methods. |
| readEpoch | back to summary |
|---|---|
| private int readEpoch | |
| reassembler | back to summary |
|---|---|
| private DTLSInputRecord. | |
| sslContext | back to summary |
|---|---|
| private SSLContextImpl sslContext | |
| DTLSInputRecord | back to summary |
|---|---|
| pack-priv DTLSInputRecord(HandshakeHash handshakeHash) | |
| acquirePlaintext | back to summary |
|---|---|
| pack-priv Plaintext acquirePlaintext() throws SSLProtocolException Overrides sun.
| |
| bytesInCompletePacket | back to summary |
|---|---|
| pack-priv int bytesInCompletePacket(ByteBuffer[] srcs, int srcsOffset, int srcsLength) throws IOException Overrides sun.
| |
| bytesInCompletePacket | back to summary |
|---|---|
| private int bytesInCompletePacket(ByteBuffer packet) throws SSLException | |
| changeReadCiphers | back to summary |
|---|---|
| pack-priv void changeReadCiphers(SSLCipher. Overrides sun.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides sun. Implements java. Doc from sun. Prevent any more data from being read into this record, and flag the record as holding no data.
| |
| decode | back to summary |
|---|---|
| pack-priv Plaintext[] decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength) throws IOException, BadPaddingException Implements abstract sun.
| |
| decode | back to summary |
|---|---|
| pack-priv Plaintext[] decode(ByteBuffer packet) throws SSLProtocolException | |
| estimateFragmentSize | back to summary |
|---|---|
| pack-priv int estimateFragmentSize(int packetSize) Overrides sun.
| |
| expectingFinishFlight | back to summary |
|---|---|
| pack-priv void expectingFinishFlight() Overrides sun.
| |
| finishHandshake | back to summary |
|---|---|
| pack-priv void finishHandshake() Overrides sun.
| |
| isEmpty | back to summary |
|---|---|
| pack-priv boolean isEmpty() Overrides sun.
| |
| parseHandshakeMessage | back to summary |
|---|---|
| private static DTLSInputRecord. | |
| setSSLContext | back to summary |
|---|---|
| public void setSSLContext(SSLContextImpl sslContext) | |
| setTransportContext | back to summary |
|---|---|
| public void setTransportContext(TransportContext tc) | |
| truncateChFragment | back to summary |
|---|---|
| private static DTLSInputRecord. Turn a sufficiently-large initial ClientHello fragment into one that stops immediately after the compression methods. This is only used for the initial CH message fragment at offset 0.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv TreeSet | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv final int | |
| pack-priv DTLSInputRecord. | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv long | |
| pack-priv DTLSInputRecord. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Plaintext | |
| private Plaintext | |
| pack-priv Plaintext | |
| private void | |
| private void | |
| pack-priv void | |
| pack-priv boolean | |
| private void | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| private DTLSInputRecord. |
| bufferedFragments | back to summary |
|---|---|
| pack-priv TreeSet<DTLSInputRecord. | |
| expectCCSFlight | back to summary |
|---|---|
| pack-priv boolean expectCCSFlight | |
| flightIsReady | back to summary |
|---|---|
| pack-priv boolean flightIsReady | |
| handshakeEpoch | back to summary |
|---|---|
| pack-priv final int handshakeEpoch | |
| handshakeFlight | back to summary |
|---|---|
| pack-priv DTLSInputRecord. | |
| needToCheckFlight | back to summary |
|---|---|
| pack-priv boolean needToCheckFlight | |
| nextRecordEpoch | back to summary |
|---|---|
| pack-priv int nextRecordEpoch | |
| nextRecordSeq | back to summary |
|---|---|
| pack-priv long nextRecordSeq | |
| precedingFlight | back to summary |
|---|---|
| pack-priv DTLSInputRecord. | |
| DTLSReassembler | back to summary |
|---|---|
| pack-priv DTLSReassembler(int handshakeEpoch) | |
| acquireCachedMessage | back to summary |
|---|---|
| private Plaintext acquireCachedMessage() throws SSLProtocolException | |
| acquireHandshakeMessage | back to summary |
|---|---|
| private Plaintext acquireHandshakeMessage() | |
| acquirePlaintext | back to summary |
|---|---|
| pack-priv Plaintext acquirePlaintext() throws SSLProtocolException | |
| bufferFragment | back to summary |
|---|---|
| private void bufferFragment(DTLSInputRecord. | |
| cleanUpRetransmit | back to summary |
|---|---|
| private void cleanUpRetransmit(DTLSInputRecord. | |
| expectingFinishFlight | back to summary |
|---|---|
| pack-priv void expectingFinishFlight() | |
| flightIsReady | back to summary |
|---|---|
| pack-priv boolean flightIsReady() | |
| handshakeHashing | back to summary |
|---|---|
| private void handshakeHashing(DTLSInputRecord. | |
| hasCompleted | back to summary |
|---|---|
| private boolean hasCompleted(byte handshakeType) | |
| hasCompleted | back to summary |
|---|---|
| private boolean hasCompleted(Set<DTLSInputRecord. | |
| hasFinishedMessage | back to summary |
|---|---|
| private boolean hasFinishedMessage() | |
| isDesirable | back to summary |
|---|---|
| private boolean isDesirable(DTLSInputRecord. | |
| isEmpty | back to summary |
|---|---|
| private boolean isEmpty() | |
| needClientVerify | back to summary |
|---|---|
| private boolean needClientVerify(Set<DTLSInputRecord. | |
| queueUpChangeCipherSpec | back to summary |
|---|---|
| pack-priv void queueUpChangeCipherSpec(DTLSInputRecord. | |
| queueUpFragment | back to summary |
|---|---|
| pack-priv void queueUpFragment(DTLSInputRecord. | |
| queueUpHandshake | back to summary |
|---|---|
| pack-priv void queueUpHandshake(DTLSInputRecord. | |
| resetHandshakeFlight | back to summary |
|---|---|
| private void resetHandshakeFlight(DTLSInputRecord. | |
| valHello | back to summary |
|---|---|
| private DTLSInputRecord. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv byte | |
| pack-priv static final byte | |
| pack-priv HashMap | |
| pack-priv int | |
| pack-priv int | |
| pack-priv long | |
| pack-priv HashMap | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| pack-priv boolean |
| flightEpoch | back to summary |
|---|---|
| pack-priv int flightEpoch | |
| handshakeType | back to summary |
|---|---|
| pack-priv byte handshakeType | |
| HF_UNKNOWN | back to summary |
|---|---|
| pack-priv static final byte HF_UNKNOWN | |
| holesMap | back to summary |
|---|---|
| pack-priv HashMap<Byte, List<DTLSInputRecord. | |
| maxMessageSeq | back to summary |
|---|---|
| pack-priv int maxMessageSeq | |
| maxRecordEpoch | back to summary |
|---|---|
| pack-priv int maxRecordEpoch | |
| maxRecordSeq | back to summary |
|---|---|
| pack-priv long maxRecordSeq | |
| messageSeqMap | back to summary |
|---|---|
| pack-priv HashMap<Byte, Integer> messageSeqMap | |
| minMessageSeq | back to summary |
|---|---|
| pack-priv int minMessageSeq | |
| HandshakeFlight | back to summary |
|---|---|
| pack-priv HandshakeFlight() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| isRetransmitOf | back to summary |
|---|---|
| pack-priv boolean isRetransmitOf(DTLSInputRecord. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv byte | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv | HandshakeFragment(byte[] fragment, byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, byte handshakeType, int messageLength, int messageSeq, int fragmentOffset, int fragmentLength)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(DTLSInputRecord.
Overrides sun. Implements java. Compares this object with the specified object for order. |
| fragmentLength | back to summary |
|---|---|
| pack-priv int fragmentLength | |
| fragmentOffset | back to summary |
|---|---|
| pack-priv int fragmentOffset | |
| handshakeType | back to summary |
|---|---|
| pack-priv byte handshakeType | |
| messageLength | back to summary |
|---|---|
| pack-priv int messageLength | |
| messageSeq | back to summary |
|---|---|
| pack-priv int messageSeq | |
| HandshakeFragment | back to summary |
|---|---|
| pack-priv HandshakeFragment(byte[] fragment, byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, byte handshakeType, int messageLength, int messageSeq, int fragmentOffset, int fragmentLength) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(DTLSInputRecord. Overrides sun. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| HoleDescriptor | back to summary |
|---|---|
| pack-priv HoleDescriptor(int offset, int limit) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte | |
| pack-priv byte[] | |
| pack-priv boolean | |
| pack-priv byte | |
| pack-priv byte | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| pack-priv | RecordFragment(ByteBuffer fragBuf, byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, boolean isCiphertext)
|
| pack-priv | RecordFragment(byte[] fragment, byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, boolean isCiphertext)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(DTLSInputRecord.
Implements java. Compares this object with the specified object for order. |
| pack-priv int |
| contentType | back to summary |
|---|---|
| pack-priv byte contentType | |
| fragment | back to summary |
|---|---|
| pack-priv byte[] fragment | |
| isCiphertext | back to summary |
|---|---|
| pack-priv boolean isCiphertext | |
| majorVersion | back to summary |
|---|---|
| pack-priv byte majorVersion | |
| minorVersion | back to summary |
|---|---|
| pack-priv byte minorVersion | |
| recordEnS | back to summary |
|---|---|
| pack-priv byte[] recordEnS | |
| recordEpoch | back to summary |
|---|---|
| pack-priv int recordEpoch | |
| recordSeq | back to summary |
|---|---|
| pack-priv long recordSeq | |
| RecordFragment | back to summary |
|---|---|
| pack-priv RecordFragment(ByteBuffer fragBuf, byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, boolean isCiphertext) | |
| RecordFragment | back to summary |
|---|---|
| pack-priv RecordFragment(byte[] fragment, byte contentType, byte majorVersion, byte minorVersion, byte[] recordEnS, int recordEpoch, long recordSeq, boolean isCiphertext) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(DTLSInputRecord. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| compareToSequence | back to summary |
|---|---|
| pack-priv int compareToSequence(int epoch, long seq) | |