Sdílet prostřednictvím


IkeSession.Kill Method

Definition

Terminate (forcibly close) the IKE session.

[Android.Runtime.Register("kill", "()V", "", ApiSince=31)]
public void Kill ();
[<Android.Runtime.Register("kill", "()V", "", ApiSince=31)>]
member this.Kill : unit -> unit
Attributes

Remarks

Terminate (forcibly close) the IKE session.

Upon closing, IkeSessionCallback#onClosed() will be fired.

Closing an IKE Session implicitly closes any remaining Child Sessions negotiated under it. Users SHOULD stop all outbound traffic that uses these Child Sessions (android.net.IpSecTransform pairs) before calling this method. Otherwise IPsec packets will be dropped due to the lack of a valid android.net.IpSecTransform.

Forcible closure of an IKE session will take priority over, and cancel other procedures waiting in the queue. It will also interrupt any ongoing locally initiated procedure.

Java documentation for android.net.ipsec.ike.IkeSession.kill().

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.

Applies to