TunnelModeChildSessionParams.Builder.SetLifetimeSeconds(Int32, Int32) 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.
Sets hard and soft lifetimes.
[Android.Runtime.Register("setLifetimeSeconds", "(II)Landroid/net/ipsec/ike/TunnelModeChildSessionParams$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.TunnelModeChildSessionParams.Builder SetLifetimeSeconds(int hardLifetimeSeconds, int softLifetimeSeconds);
[<Android.Runtime.Register("setLifetimeSeconds", "(II)Landroid/net/ipsec/ike/TunnelModeChildSessionParams$Builder;", "", ApiSince=31)>]
member this.SetLifetimeSeconds : int * int -> Android.Net.IpSec.Ike.TunnelModeChildSessionParams.Builder
Parameters
- hardLifetimeSeconds
- Int32
The Child security association lifetime before expiration, in seconds. The range is 300 through 14400, inclusive, and the default is 7200.
- softLifetimeSeconds
- Int32
The Child security association lifetime before requesting new keys, in seconds. The minimum is 120 and the default is 3600. This value must be at least 60 seconds less than hardLifetimeSeconds. See the Android implementation.
Returns
This builder, so that calls can be chained.
- Attributes
Remarks
Sets hard and soft lifetimes.
Lifetimes will not be negotiated with the remote IKE server.
Android reference for android.net.ipsec.ike.TunnelModeChildSessionParams.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.