語言

Ikev2VpnProfile.Builder.SetAllowedAlgorithms(IList<String>) 方法

定義

設定 VPN 允許的 IPsec 演算法。

[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

參數

algorithmNames
IList<String>

包含認證加加密演算法的非空清單,或同時提供兩者的認證加密演算法。

傳回

這個建築商。

屬性

備註

不安全 AUTH_HMAC_MD5 且 AUTH_HMAC_SHA1 演算法被拒絕。 若無此呼叫,除不安全演算法外,所有支援的演算法皆可使用。 當建構器以 IkeTunnelConnectionParams建構時,此方法會拋IllegalArgumentException棄。

Java 文件 android.net.Ikev2VpnProfile.Builder.setAllowedAlgorithms(java.util.List)。

適用於