@Contract(threading=IMMUTABLE) public class NTCredentials extends Object implements Credentials, Serializable
Credentials包含Windows特定属性(例如用户所属域名)的Microsoft Windows平台的实现。
| Constructor and Description |
|---|
NTCredentials(String usernamePassword)
已过时。
(4.5)将被替换为
String , char[]在5.0
|
NTCredentials(String userName, String password, String workstation, String domain)
构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDomain()
检索用于认证的名称。
|
String |
getPassword() |
String |
getUserName() |
Principal |
getUserPrincipal() |
String |
getWorkstation()
检索发起请求的计算机的工作站名称。
|
int |
hashCode() |
String |
toString() |
@Deprecated public NTCredentials(String usernamePassword)
String , char[]在5.0
usernamePassword - 域/用户名:密码形成的字符串
public Principal getUserPrincipal()
getUserPrincipal在接口
Credentials
public String getUserName()
public String getPassword()
getPassword在界面
Credentials
public String getDomain()
public String getWorkstation()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.