Ikev2VpnProfile.Builder.SetAuthPsk(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures pre-shared-key authentication.
[Android.Runtime.Register("setAuthPsk", "([B)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=30)]
public Android.Net.Ikev2VpnProfile.Builder SetAuthPsk(byte[] psk);
[<Android.Runtime.Register("setAuthPsk", "([B)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=30)>]
member this.SetAuthPsk : byte[] -> Android.Net.Ikev2VpnProfile.Builder
Parameters
- psk
- Byte[]
The required pre-shared key.
Returns
This builder.
- Attributes
Remarks
Only one authentication method may be configured; this replaces a previously configured authentication method. This method throws IllegalArgumentException when this builder was constructed with IkeTunnelConnectionParams.
Java documentation for android.net.Ikev2VpnProfile.Builder.setAuthPsk(byte[]).