Language

Ikev2VpnProfile.Builder.SetAllowedAlgorithms(IList<String>) Method

Definition

Sets the IPsec algorithms allowed for the VPN.

[Android.Runtime.Register("setAllowedAlgorithms", "(Ljava/util/List;)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=30)]
public Android.Net.Ikev2VpnProfile.Builder SetAllowedAlgorithms(System.Collections.Generic.IList<string> algorithmNames);
[<Android.Runtime.Register("setAllowedAlgorithms", "(Ljava/util/List;)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=30)>]
member this.SetAllowedAlgorithms : System.Collections.Generic.IList<string> -> Android.Net.Ikev2VpnProfile.Builder

Parameters

algorithmNames
IList<String>

A non-null list containing authentication plus encryption algorithms, or an authenticated-encryption algorithm that provides both.

Returns

This builder.

Attributes

Remarks

Insecure AUTH_HMAC_MD5 and AUTH_HMAC_SHA1 algorithms are rejected. Without this call, all supported algorithms except insecure ones are allowed. This method throws IllegalArgumentException when this builder was constructed with IkeTunnelConnectionParams.

Java documentation for android.net.Ikev2VpnProfile.Builder.setAllowedAlgorithms(java.util.List).

Applies to