Ikev2VpnProfile.Builder.SetAllowedAlgorithms(IList<String>) 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 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
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).