Interface CryptStatisticsProvider
- All Known Implementing Classes:
CryptFilter
public interface CryptStatisticsProvider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA collection of connection statistics. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the input counters.longRetrieves the current input sequence number.longRetrieves the previous input sequence number.Retrieves the output counters.longRetrieves the current output sequence number.booleanisSecure()Tells whether the connection is secure: encrypted and having a message authentication code, either via an explicit MAC or as part of an AEAD cipher.
-
Method Details
-
getLastInputSequenceNumber
long getLastInputSequenceNumber()Retrieves the previous input sequence number.This is the sequence number of the last received packet.
- Returns:
- the sequence number as an unsigned 32bit value.
-
getInputSequenceNumber
long getInputSequenceNumber()Retrieves the current input sequence number.This is the sequence number expected for the next packet.
- Returns:
- the sequence number as an unsigned 32bit value.
-
getOutputSequenceNumber
long getOutputSequenceNumber()Retrieves the current output sequence number.This is the sequence number for the next packet.
- Returns:
- the sequence number as an unsigned 32bit value.
-
getInputCounters
CryptStatisticsProvider.Counters getInputCounters()Retrieves the input counters.- Returns:
- the input counters
-
getOutputCounters
CryptStatisticsProvider.Counters getOutputCounters()Retrieves the output counters.- Returns:
- the output counters
-
isSecure
boolean isSecure()Tells whether the connection is secure: encrypted and having a message authentication code, either via an explicit MAC or as part of an AEAD cipher.- Returns:
- whether the connection is secure
-