語言

Ikev2VpnProfile.GetPresharedKey 方法

定義

取得預先共享的金鑰。

[Android.Runtime.Register("getPresharedKey", "()[B", "", ApiSince=30)]
public byte[]? GetPresharedKey();
[<Android.Runtime.Register("getPresharedKey", "()[B", "", ApiSince=30)>]
member this.GetPresharedKey : unit -> byte[]

傳回

Byte[]

儲存的預先共享金鑰的複本,或當未儲存金鑰或設定檔使用 IKE 隧道連線參數時,則為空金鑰。

屬性

備註

若設定檔未使用預共享金鑰認證,或設定檔由 建構而 IkeTunnelConnectionParams成,則可能為空。

Java 文件 android.net.Ikev2VpnProfile.getPresharedKey()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於