IkeSession.OpenChildSession(ChildSessionParams, IChildSessionCallback) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Request a new Child Session.
[Android.Runtime.Register("openChildSession", "(Landroid/net/ipsec/ike/ChildSessionParams;Landroid/net/ipsec/ike/ChildSessionCallback;)V", "", ApiSince=31)]
public void OpenChildSession (Android.Net.IpSec.Ike.ChildSessionParams childSessionParams, Android.Net.IpSec.Ike.IChildSessionCallback childSessionCallback);
[<Android.Runtime.Register("openChildSession", "(Landroid/net/ipsec/ike/ChildSessionParams;Landroid/net/ipsec/ike/ChildSessionCallback;)V", "", ApiSince=31)>]
member this.OpenChildSession : Android.Net.IpSec.Ike.ChildSessionParams * Android.Net.IpSec.Ike.IChildSessionCallback -> unit
Parameters
- childSessionParams
- ChildSessionParams
the ChildSessionParams
that contains the Child Session
configurations to negotiate.
- childSessionCallback
- IChildSessionCallback
the ChildSessionCallback
interface to notify users the
state changes of the Child Session. It will be posted to the callback Executor
of
this IkeSession
.
- Attributes
Remarks
Request a new Child Session.
Users MUST provide a unique ChildSessionCallback
instance for each new Child Session.
Upon setup, ChildSessionCallback#onOpened(ChildSessionConfiguration)
will be fired.
FEATURE_IPSEC_TUNNELS is required for setting up a tunnel mode Child SA.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.