Langue

Ikev2VpnProfile.Builder.SetAllowedAlgorithms(IList<String>) Méthode

Définition

Définit les algorithmes IPsec autorisés pour le 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

Paramètres

algorithmNames
IList<String>

Liste non null contenant l’authentification et les algorithmes de chiffrement, ou un algorithme de chiffrement authentifié qui fournit les deux.

Retours

Ce générateur.

Attributs

Remarques

Les algorithmes non sécurisés et AUTH_HMAC_SHA1 non sécurisés AUTH_HMAC_MD5 sont rejetés. Sans cet appel, tous les algorithmes pris en charge, sauf les algorithmes non sécurisés sont autorisés. Cette méthode lève IllegalArgumentException lorsque ce générateur a été construit avec IkeTunnelConnectionParams.

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

S’applique à