Language

UsernamePasswordCredentials Constructors

Definition

Overloads

Name Description
UsernamePasswordCredentials(String)

The constructor with the username and password combined string argument.

UsernamePasswordCredentials(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

UsernamePasswordCredentials(String, String)

The constructor with the username and password arguments.

UsernamePasswordCredentials(String)

The constructor with the username and password combined string argument.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public UsernamePasswordCredentials(string? usernamePassword);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Authentication.UsernamePasswordCredentials : string -> Org.Apache.Http.Authentication.UsernamePasswordCredentials

Parameters

usernamePassword
String

The combined username:password string. Must not be null. The first colon separates the password, which can contain further colons. Without a colon, the entire string is the user name and the password is null.

Attributes

Remarks

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

UsernamePasswordCredentials(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected UsernamePasswordCredentials(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Authentication.UsernamePasswordCredentials : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Authentication.UsernamePasswordCredentials

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

UsernamePasswordCredentials(String, String)

The constructor with the username and password arguments.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public UsernamePasswordCredentials(string? userName, string? password);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Authentication.UsernamePasswordCredentials : string * string -> Org.Apache.Http.Authentication.UsernamePasswordCredentials

Parameters

userName
String

The user name. Must not be null. Its case is unchanged.

password
String

The password, or null if no password is supplied.

Attributes

Remarks

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