Ikev2VpnProfile.Builder.SetAuthUsernamePassword 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 EAP-MSCHAPv2 authentication.
[Android.Runtime.Register("setAuthUsernamePassword", "(Ljava/lang/String;Ljava/lang/String;Ljava/security/cert/X509Certificate;)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=30)]
public Android.Net.Ikev2VpnProfile.Builder SetAuthUsernamePassword(string user, string pass, Java.Security.Cert.X509Certificate? serverRootCa);
[<Android.Runtime.Register("setAuthUsernamePassword", "(Ljava/lang/String;Ljava/lang/String;Ljava/security/cert/X509Certificate;)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=30)>]
member this.SetAuthUsernamePassword : string * string * Java.Security.Cert.X509Certificate -> Android.Net.Ikev2VpnProfile.Builder
Parameters
- user
- String
The required user name.
- pass
- String
The required password.
- serverRootCa
- X509Certificate
The server-verification root certificate, or null to use the system trust store.
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.