语言

AuthScope 构造函数

定义

重载

名称 说明
AuthScope(AuthScope)

创建给定凭据范围的副本。

AuthScope(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

AuthScope(String, Int32)

为给定 host、 port任何领域名称和任何身份验证方案创建新的凭据范围。

AuthScope(String, Int32, String)

为给定host的、portrealm和任何身份验证方案创建新的凭据范围。

AuthScope(String, Int32, String, String)

为给定host、port和 realmauthentication scheme 创建新的凭据范围。

AuthScope(AuthScope)

创建给定凭据范围的副本。

[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

参数

authscope
AuthScope

要复制的身份验证范围。 不得为 null。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

AuthScope(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

AuthScope(String, Int32)

为给定 host、 port任何领域名称和任何身份验证方案创建新的凭据范围。

[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

参数

host
String

凭据应用到的主机,或任何 null 主机。 该名称使用英语区域设置以小写形式存储。

port
Int32

凭据应用到的端口,或任何端口的负值。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

AuthScope(String, Int32, String)

为给定host的、portrealm和任何身份验证方案创建新的凭据范围。

[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

参数

host
String

凭据应用到的主机,或任何 null 主机。 该名称使用英语区域设置以小写形式存储。

port
Int32

凭据应用到的端口,或任何端口的负值。

realm
String

凭据应用到的身份验证领域,或任何 null 领域。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

AuthScope(String, Int32, String, String)

为给定host、port和 realmauthentication 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

参数

host
String

凭据应用到的主机,或任何 null 主机。 该名称使用英语区域设置以小写形式存储。

port
Int32

凭据应用到的端口,或任何端口的负值。

realm
String

凭据应用到的身份验证领域,或任何 null 领域。

scheme
String

凭据应用到的身份验证方案,或 null 适用于任何方案的身份验证方案。 该名称使用英语区域设置以大写形式存储。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于