Stay organized with collections
Save and categorize content based on your preferences.
ChildSessionConfiguration
class ChildSessionConfiguration
ChildSessionConfiguration represents the negotiated configuration for a Child Session.
Configurations include traffic selectors and internal network information.
Summary
Public methods
getInboundTrafficSelectors
fun getInboundTrafficSelectors(): MutableList<IkeTrafficSelector!>
Returns the negotiated inbound traffic selectors.
Only inbound traffic within the range is acceptable to the Child Session.
The Android platform does not support port-based routing. Port ranges of traffic selectors are only informational.
getOutboundTrafficSelectors
fun getOutboundTrafficSelectors(): MutableList<IkeTrafficSelector!>
Returns the negotiated outbound traffic selectors.
Only outbound traffic within the range is acceptable to the Child Session.
The Android platform does not support port-based routing. Port ranges of traffic selectors are only informational.
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,["# ChildSessionConfiguration\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nChildSessionConfiguration\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/ipsec/ike/ChildSessionConfiguration \"View this page in Java\") \n\n```\nclass ChildSessionConfiguration\n```\n\n|---|------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.ipsec.ike.ChildSessionConfiguration](#) |\n\nChildSessionConfiguration represents the negotiated configuration for a Child Session.\n\nConfigurations include traffic selectors and internal network information.\n\nSummary\n-------\n\n| Nested classes ||\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration.Builder) This class can be used to incrementally construct a [ChildSessionConfiguration](#). |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[IkeTrafficSelector](/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector)!\\\u003e | [getInboundTrafficSelectors](#getInboundTrafficSelectors())`()` Returns the negotiated inbound traffic selectors. |\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[IkeTrafficSelector](/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector)!\\\u003e | [getOutboundTrafficSelectors](#getOutboundTrafficSelectors())`()` Returns the negotiated outbound traffic selectors. |\n\nPublic methods\n--------------\n\n### getInboundTrafficSelectors\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getInboundTrafficSelectors(): MutableList\u003cIkeTrafficSelector!\u003e\n```\n\nReturns the negotiated inbound traffic selectors.\n\nOnly inbound traffic within the range is acceptable to the Child Session.\n\nThe Android platform does not support port-based routing. Port ranges of traffic selectors are only informational.\n\n| Return ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[IkeTrafficSelector](/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector)!\u003e | the inbound traffic selectors. This value cannot be `null`. |\n\n### getOutboundTrafficSelectors\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getOutboundTrafficSelectors(): MutableList\u003cIkeTrafficSelector!\u003e\n```\n\nReturns the negotiated outbound traffic selectors.\n\nOnly outbound traffic within the range is acceptable to the Child Session.\n\nThe Android platform does not support port-based routing. Port ranges of traffic selectors are only informational.\n\n| Return ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[IkeTrafficSelector](/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector)!\u003e | the outbound traffic selectors. This value cannot be `null`. |"]]