AuthScope Constructors
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.
Overloads
| Name | Description |
|---|---|
| AuthScope(AuthScope) |
Creates a copy of the given credentials scope. |
| AuthScope(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| AuthScope(String, Int32) |
Creates a new credentials scope for the given
|
| AuthScope(String, Int32, String) |
Creates a new credentials scope for the given
|
| AuthScope(String, Int32, String, String) |
Creates a new credentials scope for the given
|
AuthScope(AuthScope)
Creates a copy of the given credentials scope.
[Android.Runtime.Register(".ctor", "(Lorg/apache/http/auth/AuthScope;)V", "")]
public AuthScope(Org.Apache.Http.Authentication.AuthScope? authscope);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/auth/AuthScope;)V", "")>]
new Org.Apache.Http.Authentication.AuthScope : Org.Apache.Http.Authentication.AuthScope -> Org.Apache.Http.Authentication.AuthScope
Parameters
- authscope
- AuthScope
The authentication scope to copy. Must not be 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
AuthScope(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected AuthScope(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Authentication.AuthScope : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Authentication.AuthScope
Parameters
- 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
AuthScope(String, Int32)
Creates a new credentials scope for the given
host, port, any realm name, and any
authentication scheme.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public AuthScope(string? host, int port);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Org.Apache.Http.Authentication.AuthScope : string * int -> Org.Apache.Http.Authentication.AuthScope
Parameters
- host
- String
The host to which the credentials apply, or null for any host. The name is stored in lowercase using the English locale.
- port
- Int32
The port to which the credentials apply, or a negative value for any port.
- 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
AuthScope(String, Int32, String)
Creates a new credentials scope for the given
host, port, realm, and any
authentication scheme.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "")]
public AuthScope(string? host, int port, string? realm);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "")>]
new Org.Apache.Http.Authentication.AuthScope : string * int * string -> Org.Apache.Http.Authentication.AuthScope
Parameters
- host
- String
The host to which the credentials apply, or null for any host. The name is stored in lowercase using the English locale.
- port
- Int32
The port to which the credentials apply, or a negative value for any port.
- realm
- String
The authentication realm to which the credentials apply, or null for any realm.
- 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
AuthScope(String, Int32, String, String)
Creates a new credentials scope for the given
host, port, realm, and
authentication scheme.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V", "")]
public AuthScope(string? host, int port, string? realm, string? scheme);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Authentication.AuthScope : string * int * string * string -> Org.Apache.Http.Authentication.AuthScope
Parameters
- host
- String
The host to which the credentials apply, or null for any host. The name is stored in lowercase using the English locale.
- port
- Int32
The port to which the credentials apply, or a negative value for any port.
- realm
- String
The authentication realm to which the credentials apply, or null for any realm.
- scheme
- String
The authentication scheme to which the credentials apply, or null for any scheme. The name is stored in uppercase using the English locale.
- 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.