Language

TunnelModeChildSessionParams.Builder.AddOutboundTrafficSelectors Method

Definition

Adds an outbound IkeTrafficSelector to the TunnelModeChildSessionParams being built.

[Android.Runtime.Register("addOutboundTrafficSelectors", "(Landroid/net/ipsec/ike/IkeTrafficSelector;)Landroid/net/ipsec/ike/TunnelModeChildSessionParams$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.TunnelModeChildSessionParams.Builder AddOutboundTrafficSelectors(Android.Net.IpSec.Ike.IkeTrafficSelector trafficSelector);
[<Android.Runtime.Register("addOutboundTrafficSelectors", "(Landroid/net/ipsec/ike/IkeTrafficSelector;)Landroid/net/ipsec/ike/TunnelModeChildSessionParams$Builder;", "", ApiSince=31)>]
member this.AddOutboundTrafficSelectors : Android.Net.IpSec.Ike.IkeTrafficSelector -> Android.Net.IpSec.Ike.TunnelModeChildSessionParams.Builder

Parameters

trafficSelector
IkeTrafficSelector

the outbound IkeTrafficSelector. This value cannot be null.

Returns

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

Attributes

Remarks

Adds an outbound IkeTrafficSelector to the TunnelModeChildSessionParams being built.

This method allows callers to limit the outbound traffic transmitted over the Child Session to the given range. The IKE server may further narrow the range. Callers should refer to ChildSessionConfiguration for the negotiated traffic selectors.

If no outbound IkeTrafficSelector is provided, a default value will be used that covers all IP addresses and ports.

Android reference for android.net.ipsec.ike.TunnelModeChildSessionParams.Builder.addOutboundTrafficSelectors.

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