Builder
class Builder
kotlin.Any | |
↳ | android.net.IpSecTransformState.Builder |
Builder class for testing purposes
Except for testing, IPsec callers normally do not instantiate IpSecTransformState
themselves but instead get a reference via IpSecTransformState
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
IpSecTransformState |
build() Build and validate the IpSecTransformState |
IpSecTransformState.Builder |
setByteCount(byteCount: Long) Set the number of bytes processed so far as an unsigned long |
IpSecTransformState.Builder |
setPacketCount(packetCount: Long) Set the number of packets processed so far as an unsigned long |
IpSecTransformState.Builder |
setReplayBitmap(bitMap: ByteArray) Set the replay bitmap |
IpSecTransformState.Builder |
setRxHighestSequenceNumber(seqNum: Long) Set the highest sequence number received so far as an unsigned long |
IpSecTransformState.Builder |
setTimestampMillis(timestamp: Long) Set the timestamp (milliseconds) when this state was created |
IpSecTransformState.Builder |
setTxHighestSequenceNumber(seqNum: Long) Set the highest sequence number sent so far as an unsigned long |
Public constructors
Public methods
build
fun build(): IpSecTransformState
Build and validate the IpSecTransformState
Return | |
---|---|
IpSecTransformState |
an immutable IpSecTransformState instance This value cannot be null . |
setByteCount
fun setByteCount(byteCount: Long): IpSecTransformState.Builder
Set the number of bytes processed so far as an unsigned long
Return | |
---|---|
IpSecTransformState.Builder |
This value cannot be null . |
setPacketCount
fun setPacketCount(packetCount: Long): IpSecTransformState.Builder
Set the number of packets processed so far as an unsigned long
Return | |
---|---|
IpSecTransformState.Builder |
This value cannot be null . |
setReplayBitmap
fun setReplayBitmap(bitMap: ByteArray): IpSecTransformState.Builder
Set the replay bitmap
Parameters | |
---|---|
bitMap |
ByteArray: This value cannot be null . |
Return | |
---|---|
IpSecTransformState.Builder |
This value cannot be null . |
setRxHighestSequenceNumber
fun setRxHighestSequenceNumber(seqNum: Long): IpSecTransformState.Builder
Set the highest sequence number received so far as an unsigned long
Return | |
---|---|
IpSecTransformState.Builder |
This value cannot be null . |
setTimestampMillis
fun setTimestampMillis(timestamp: Long): IpSecTransformState.Builder
Set the timestamp (milliseconds) when this state was created
Return | |
---|---|
IpSecTransformState.Builder |
This value cannot be null . |
setTxHighestSequenceNumber
fun setTxHighestSequenceNumber(seqNum: Long): IpSecTransformState.Builder
Set the highest sequence number sent so far as an unsigned long
Return | |
---|---|
IpSecTransformState.Builder |
This value cannot be null . |