Top Description Fields Constructors Methods
org.bouncycastle.tls

pack-priv Class DTLSReplayWindow

extends Object
Class Inheritance

RFC 4347 4.1.2.5 Anti-replay

Support fast rejection of duplicate records by maintaining a sliding receive window

Field Summary

Modifier and TypeField and Description
private long
private long
private static final long
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
reportAuthenticated(long
the 48-bit DTLSPlainText.sequence_number field of an authenticated record.
seq
)

Report that a received record with the given sequence number passed authentication checks.

pack-priv void
reset(long seq)

pack-priv boolean

Returns:

true if the record should be discarded without further processing.
shouldDiscard
(long
the 48-bit DTLSPlainText.sequence_number field of a received record.
seq
)

Check whether a received record with the given sequence number should be rejected as a duplicate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitmapback to summary
private long bitmap
latestConfirmedSeqback to summary
private long latestConfirmedSeq
VALID_SEQ_MASKback to summary
private static final long VALID_SEQ_MASK
WINDOW_SIZEback to summary
private static final long WINDOW_SIZE

Constructor Detail

DTLSReplayWindowback to summary
pack-priv DTLSReplayWindow()

Method Detail

reportAuthenticatedback to summary
pack-priv boolean reportAuthenticated(long seq)

Report that a received record with the given sequence number passed authentication checks.

Parameters
seq:long

the 48-bit DTLSPlainText.sequence_number field of an authenticated record.

resetback to summary
pack-priv void reset(long seq)
shouldDiscardback to summary
pack-priv boolean shouldDiscard(long seq)

Check whether a received record with the given sequence number should be rejected as a duplicate.

Parameters
seq:long

the 48-bit DTLSPlainText.sequence_number field of a received record.

Returns:boolean

true if the record should be discarded without further processing.