Added in API level 35

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

Public methods
IpSecTransformState

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

Set the replay bitmap

IpSecTransformState.Builder

Set the highest sequence number received so far as an unsigned long

IpSecTransformState.Builder

Set the timestamp (milliseconds) when this state was created

IpSecTransformState.Builder

Set the highest sequence number sent so far as an unsigned long

Public constructors

Builder

Added in API level 35
Builder()

Public methods

build

Added in API level 35
fun build(): IpSecTransformState

Build and validate the IpSecTransformState

Return
IpSecTransformState an immutable IpSecTransformState instance This value cannot be null.

setByteCount

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
fun setTimestampMillis(timestamp: Long): IpSecTransformState.Builder

Set the timestamp (milliseconds) when this state was created

Return
IpSecTransformState.Builder This value cannot be null.

setTxHighestSequenceNumber

Added in API level 35
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.