Language

IkeSessionParams.Builder.SetLifetimeSeconds(Int32, Int32) Method

Definition

Sets hard and soft lifetimes.

[Android.Runtime.Register("setLifetimeSeconds", "(II)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.IkeSessionParams.Builder SetLifetimeSeconds(int hardLifetimeSeconds, int softLifetimeSeconds);
[<Android.Runtime.Register("setLifetimeSeconds", "(II)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)>]
member this.SetLifetimeSeconds : int * int -> Android.Net.IpSec.Ike.IkeSessionParams.Builder

Parameters

hardLifetimeSeconds
Int32

The IKE security association lifetime before expiration, in seconds. The range is 300 through 86400, inclusive, and the default is 14400.

softLifetimeSeconds
Int32

The IKE security association lifetime before requesting new keys, in seconds. The minimum is 120 and the default is 7200. This value must be at least 60 seconds less than hardLifetimeSeconds. See the Android implementation.

Returns

Builder this, to facilitate chaining. This value cannot be null.

Attributes

Remarks

Sets hard and soft lifetimes.

Lifetimes will not be negotiated with the remote IKE server.

Android reference for android.net.ipsec.ike.IkeSessionParams.Builder.setLifetimeSeconds.

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