你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WindowsCredentials 类
- java.
lang. Object - SecurityCredentials
- system.
fabric. WindowsCredentials
- system.
public class WindowsCredentials extends SecurityCredentials
表示 Active Directory 域凭据。
构造函数摘要
构造函数 | 说明 |
---|---|
WindowsCredentials() |
初始化 system.fabric.WindowsCredentials 类的新实例。 |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
Protection |
getProtectionLevel()
获取如何保护通信,默认值为 ENCRYPTANDSIGN。 |
List<String> |
getRemoteIdentities()
获取远程客户端的 Active Directory 域标识列表,每个条目可以是帐户名或组名称。 |
String |
getRemoteSpn()
获取远程侦听器的服务主体名称,如果远程侦听器作为计算机帐户运行,则可以留空。 |
void |
setProtectionLevel(ProtectionLevel protectionLevel)
设置如何保护通信,默认值为 ENCRYPTANDSIGN。 |
void |
setRemoteSpn(String remoteSpn)
设置远程侦听器的服务主体名称,如果远程侦听器作为计算机帐户运行,则可以留空。 |
继承成员
构造函数详细信息
WindowsCredentials
public WindowsCredentials()
初始化 system.fabric.WindowsCredentials 类的新实例。
方法详细信息
getProtectionLevel
getRemoteIdentities
public List
获取远程客户端的 Active Directory 域标识列表,每个条目可以是帐户名或组名称。
返回:
getRemoteSpn
public String getRemoteSpn()
获取远程侦听器的服务主体名称,如果远程侦听器作为计算机帐户运行,则可以留空。
返回:
setProtectionLevel
public void setProtectionLevel(ProtectionLevel protectionLevel)
设置如何保护通信,默认值为 ENCRYPTANDSIGN。
参数:
setRemoteSpn
public void setRemoteSpn(String remoteSpn)
设置远程侦听器的服务主体名称,如果远程侦听器作为计算机帐户运行,则可以留空。
参数: