Stay organized with collections
Save and categorize content based on your preferences.
Builder
class 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
setRxHighestSequenceNumber
fun setRxHighestSequenceNumber(seqNum: Long): IpSecTransformState.Builder
Set the highest sequence number received so far as an unsigned long
setTxHighestSequenceNumber
fun setTxHighestSequenceNumber(seqNum: Long): IpSecTransformState.Builder
Set the highest sequence number sent so far as an unsigned long
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# IpSecTransformState.Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/IpSecTransformState.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.IpSecTransformState.Builder](#) |\n\nBuilder class for testing purposes\n\nExcept for testing, IPsec callers normally do not instantiate [IpSecTransformState](/reference/kotlin/android/net/IpSecTransformState) themselves but instead get a reference via [IpSecTransformState](/reference/kotlin/android/net/IpSecTransformState)\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|--------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IpSecTransformState](/reference/kotlin/android/net/IpSecTransformState) | [build](#build())`()` Build and validate the IpSecTransformState |\n| [IpSecTransformState.Builder](#) | [setByteCount](#setByteCount(kotlin.Long))`(`byteCount:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the number of bytes processed so far as an unsigned long |\n| [IpSecTransformState.Builder](#) | [setPacketCount](#setPacketCount(kotlin.Long))`(`packetCount:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the number of packets processed so far as an unsigned long |\n| [IpSecTransformState.Builder](#) | [setReplayBitmap](#setReplayBitmap(kotlin.ByteArray))`(`bitMap:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Set the replay bitmap |\n| [IpSecTransformState.Builder](#) | [setRxHighestSequenceNumber](#setRxHighestSequenceNumber(kotlin.Long))`(`seqNum:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the highest sequence number received so far as an unsigned long |\n| [IpSecTransformState.Builder](#) | [setTimestampMillis](#setTimestampMillis(kotlin.Long))`(`timestamp:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the timestamp (milliseconds) when this state was created |\n| [IpSecTransformState.Builder](#) | [setTxHighestSequenceNumber](#setTxHighestSequenceNumber(kotlin.Long))`(`seqNum:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the highest sequence number sent so far as an unsigned long |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): IpSecTransformState\n```\n\nBuild and validate the IpSecTransformState\n\n| Return ||\n|--------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [IpSecTransformState](/reference/kotlin/android/net/IpSecTransformState) | an immutable IpSecTransformState instance This value cannot be `null`. |\n\n### setByteCount\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setByteCount(byteCount: Long): IpSecTransformState.Builder\n```\n\nSet the number of bytes processed so far as an unsigned long\n\n| Return ||\n|----------------------------------|------------------------------|\n| [IpSecTransformState.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [android.net.IpSecTransformState#getByteCount()](/reference/kotlin/android/net/IpSecTransformState#getByteCount()) \n\n### setPacketCount\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setPacketCount(packetCount: Long): IpSecTransformState.Builder\n```\n\nSet the number of packets processed so far as an unsigned long\n\n| Return ||\n|----------------------------------|------------------------------|\n| [IpSecTransformState.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [android.net.IpSecTransformState#getPacketCount()](/reference/kotlin/android/net/IpSecTransformState#getPacketCount()) \n\n### setReplayBitmap\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setReplayBitmap(bitMap: ByteArray): IpSecTransformState.Builder\n```\n\nSet the replay bitmap\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------|\n| `bitMap` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html): This value cannot be `null`. |\n\n| Return ||\n|----------------------------------|------------------------------|\n| [IpSecTransformState.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [android.net.IpSecTransformState#getReplayBitmap()](/reference/kotlin/android/net/IpSecTransformState#getReplayBitmap()) \n\n### setRxHighestSequenceNumber\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setRxHighestSequenceNumber(seqNum: Long): IpSecTransformState.Builder\n```\n\nSet the highest sequence number received so far as an unsigned long\n\n| Return ||\n|----------------------------------|------------------------------|\n| [IpSecTransformState.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [android.net.IpSecTransformState#getRxHighestSequenceNumber()](/reference/kotlin/android/net/IpSecTransformState#getRxHighestSequenceNumber()) \n\n### setTimestampMillis\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setTimestampMillis(timestamp: Long): IpSecTransformState.Builder\n```\n\nSet the timestamp (milliseconds) when this state was created\n\n| Return ||\n|----------------------------------|------------------------------|\n| [IpSecTransformState.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [android.net.IpSecTransformState#getTimestampMillis()](/reference/kotlin/android/net/IpSecTransformState#getTimestampMillis()) \n\n### setTxHighestSequenceNumber\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setTxHighestSequenceNumber(seqNum: Long): IpSecTransformState.Builder\n```\n\nSet the highest sequence number sent so far as an unsigned long\n\n| Return ||\n|----------------------------------|------------------------------|\n| [IpSecTransformState.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [android.net.IpSecTransformState#getTxHighestSequenceNumber()](/reference/kotlin/android/net/IpSecTransformState#getTxHighestSequenceNumber())"]]