Language

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[]

A copy of the stored pre-shared key, or null when no key is stored or the profile uses IKE tunnel connection parameters.

Attributes

Remarks

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