Freigeben über


IChildSessionCallback.OnIpSecTransformDeleted(IpSecTransform, Int32) Method

Definition

Called when an IpSecTransform is deleted by this Child Session.

[Android.Runtime.Register("onIpSecTransformDeleted", "(Landroid/net/IpSecTransform;I)V", "GetOnIpSecTransformDeleted_Landroid_net_IpSecTransform_IHandler:Android.Net.IpSec.Ike.IChildSessionCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnIpSecTransformDeleted (Android.Net.IpSecTransform ipSecTransform, int direction);
[<Android.Runtime.Register("onIpSecTransformDeleted", "(Landroid/net/IpSecTransform;I)V", "GetOnIpSecTransformDeleted_Landroid_net_IpSecTransform_IHandler:Android.Net.IpSec.Ike.IChildSessionCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnIpSecTransformDeleted : Android.Net.IpSecTransform * int -> unit

Parameters

ipSecTransform
IpSecTransform

the deleted IpSecTransform.

direction
Int32

the direction of this IpSecTransform.

Attributes

Remarks

Called when an IpSecTransform is deleted by this Child Session.

This method is fired when a Child Session is closed or a Child Session has deleted old IPsec SA during rekey. When this method is fired due to Child Session closure, it will be followed by #onClosed() or #onClosedWithException(IkeException).

Users SHOULD remove the IpSecTransform from the socket or interface when this method is called. Otherwise the IPsec traffic protected by this IpSecTransform will be discarded.

Java documentation for android.net.ipsec.ike.ChildSessionCallback.onIpSecTransformDeleted(android.net.IpSecTransform, int).

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