Language

TunnelModeChildSessionParams.Builder.SetLifetimeSeconds(Int32, Int32) メソッド

定義

ハードおよびソフトの有効期間を設定します。

[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

パラメーター

hardLifetimeSeconds
Int32

有効期限が切れる前の子セキュリティ アソシエーションの有効期間 (秒単位)。 範囲は 300 ~ 14400 で、既定値は 7200 です。

softLifetimeSeconds
Int32

新しいキーを要求する前の子セキュリティ アソシエーションの有効期間 (秒単位)。 最小値は 120 で、既定値は 3600 です。 この値は、 hardLifetimeSecondsより少なくとも 60 秒未満である必要があります。

戻り値

呼び出しをチェーンできるように、このビルダー。

属性

注釈

ハードおよびソフトの有効期間を設定します。

有効期間はリモート IKE サーバーとネゴシエートされません。

android.net.ipsec.ike.TunnelModeChildSessionParams.Builder.setLifetimeSecondsの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象