다음을 통해 공유


IkeSession.Close Method

Definition

Close the IKE session gracefully.

[Android.Runtime.Register("close", "()V", "", ApiSince=31)]
public void Close ();
[<Android.Runtime.Register("close", "()V", "", ApiSince=31)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Remarks

Close the IKE session gracefully.

Implements AutoCloseable#close()

Upon closure, IkeSessionCallback#onClosed() or IkeSessionCallback#onClosedWithException(IkeException) 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.

Closure of an IKE session will take priority over, and cancel other procedures waiting in the queue (but will wait for ongoing locally initiated procedures to complete). After sending the Delete request, the IKE library will wait until a Delete response is received or retransmission timeout occurs.

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

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