PasswordAuthentication(String, Char[]) 构造函数

定义

从给定的用户名和密码创建新 PasswordAuthentication 对象。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[C)V", "")]
public PasswordAuthentication (string? userName, char[]? password);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[C)V", "")>]
new Java.Net.PasswordAuthentication : string * char[] -> Java.Net.PasswordAuthentication

参数

userName
String

用户名

password
Char[]

用户的密码

属性

注解

从给定的用户名和密码创建新 PasswordAuthentication 对象。

请注意,在将给定用户密码存储在新 PasswordAuthentication 对象中之前,将克隆该密码。

适用于 . 的 java.net.PasswordAuthentication.PasswordAuthentication(java.lang.String, char[])Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于