Share via


Ikev2VpnProfile.GetPresharedKey Method

Definition

Retrieves the pre-shared key.

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

Returns

Byte[]
Attributes

Remarks

Retrieves the pre-shared key.

May be null if the profile is not using Pre-shared key authentication, or the profile is built from an IkeTunnelConnectionParams.

Java documentation for android.net.Ikev2VpnProfile.getPresharedKey().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to