Stay organized with collections
Save and categorize content based on your preferences.
IkeTunnelConnectionParams
class IkeTunnelConnectionParams
IkeTunnelConnectionParams contains IKEv2 configurations to establish an IKE/IPsec tunnel.
This class containing IKEv2-specific configuration, authentication and authorization parameters to establish an IKE/IPsec tunnel.
Summary
Public constructors |
Construct an IkeTunnelConnectionParams instance.
|
Public constructors
Public methods
getIkeSessionParams
fun getIkeSessionParams(): IkeSessionParams
Returns the IKE Session configuration.
getTunnelModeChildSessionParams
fun getTunnelModeChildSessionParams(): TunnelModeChildSessionParams
Returns the Tunnel mode Child Session configuration.
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,["# IkeTunnelConnectionParams\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIkeTunnelConnectionParams\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/ipsec/ike/IkeTunnelConnectionParams \"View this page in Java\") \n\n```\nclass IkeTunnelConnectionParams\n```\n\n|---|------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.ipsec.ike.IkeTunnelConnectionParams](#) |\n\nIkeTunnelConnectionParams contains IKEv2 configurations to establish an IKE/IPsec tunnel.\n\nThis class containing IKEv2-specific configuration, authentication and authorization parameters to establish an IKE/IPsec tunnel.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [IkeTunnelConnectionParams](#IkeTunnelConnectionParams(android.net.ipsec.ike.IkeSessionParams,%20android.net.ipsec.ike.TunnelModeChildSessionParams))`(`ikeParams:` `[IkeSessionParams](/reference/kotlin/android/net/ipsec/ike/IkeSessionParams)`, `childParams:` `[TunnelModeChildSessionParams](/reference/kotlin/android/net/ipsec/ike/TunnelModeChildSessionParams)`)` Construct an IkeTunnelConnectionParams instance. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [IkeSessionParams](/reference/kotlin/android/net/ipsec/ike/IkeSessionParams) | [getIkeSessionParams](#getIkeSessionParams())`()` Returns the IKE Session configuration. |\n| [TunnelModeChildSessionParams](/reference/kotlin/android/net/ipsec/ike/TunnelModeChildSessionParams) | [getTunnelModeChildSessionParams](#getTunnelModeChildSessionParams())`()` Returns the Tunnel mode Child Session configuration. |\n\nPublic constructors\n-------------------\n\n### IkeTunnelConnectionParams\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nIkeTunnelConnectionParams(\n ikeParams: IkeSessionParams, \n childParams: TunnelModeChildSessionParams)\n```\n\nConstruct an IkeTunnelConnectionParams instance.\n\n| Parameters ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ikeParams` | [IkeSessionParams](/reference/kotlin/android/net/ipsec/ike/IkeSessionParams): the IKE Session configuration This value cannot be `null`. |\n| `childParams` | [TunnelModeChildSessionParams](/reference/kotlin/android/net/ipsec/ike/TunnelModeChildSessionParams): the Tunnel mode Child Session configuration This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### getIkeSessionParams\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getIkeSessionParams(): IkeSessionParams\n```\n\nReturns the IKE Session configuration.\n\n| Return ||\n|------------------------------------------------------------------------------|------------------------------|\n| [IkeSessionParams](/reference/kotlin/android/net/ipsec/ike/IkeSessionParams) | This value cannot be `null`. |\n\n### getTunnelModeChildSessionParams\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getTunnelModeChildSessionParams(): TunnelModeChildSessionParams\n```\n\nReturns the Tunnel mode Child Session configuration.\n\n| Return ||\n|------------------------------------------------------------------------------------------------------|------------------------------|\n| [TunnelModeChildSessionParams](/reference/kotlin/android/net/ipsec/ike/TunnelModeChildSessionParams) | This value cannot be `null`. |"]]