다음을 통해 공유


WindowsCredentials Class

public class WindowsCredentials extends SecurityCredentials

Represents the active directory domain credential.

Constructor Summary

Constructor Description
WindowsCredentials()

Initializes a new instance of the system.fabric.WindowsCredentials class.

Method Summary

Modifier and Type Method and Description
ProtectionLevel getProtectionLevel()

Gets how communication is protected, default value is ENCRYPTANDSIGN.

List<String> getRemoteIdentities()

Gets the list of active directory domain identities of remote clients, each entry can be either account name or group name.

String getRemoteSpn()

Gets the service principal name of remote listener, can be left empty if the remote listener runs as machine accounts.

void setProtectionLevel(ProtectionLevel protectionLevel)

Sets how communication is protected, default value is ENCRYPTANDSIGN.

void setRemoteSpn(String remoteSpn)

Sets the service principal name of remote listener, can be left empty if the remote listener runs as machine accounts.

Inherited Members

Constructor Details

WindowsCredentials

public WindowsCredentials()

Initializes a new instance of the system.fabric.WindowsCredentials class.

Method Details

getProtectionLevel

public ProtectionLevel getProtectionLevel()

Gets how communication is protected, default value is ENCRYPTANDSIGN.

Returns:

The protection level of the credential.

getRemoteIdentities

public List getRemoteIdentities()

Gets the list of active directory domain identities of remote clients, each entry can be either account name or group name.

Returns:

The list of active directory domain identities of remote clients, each entry can be either account name or group name.

getRemoteSpn

public String getRemoteSpn()

Gets the service principal name of remote listener, can be left empty if the remote listener runs as machine accounts.

Returns:

The service principal name of remote listener, can be left empty if the remote listener runs as machine accounts.

setProtectionLevel

public void setProtectionLevel(ProtectionLevel protectionLevel)

Sets how communication is protected, default value is ENCRYPTANDSIGN.

Parameters:

protectionLevel - The protection level of the credential.

setRemoteSpn

public void setRemoteSpn(String remoteSpn)

Sets the service principal name of remote listener, can be left empty if the remote listener runs as machine accounts.

Parameters:

remoteSpn - The service principal name of remote listener, can be left empty if the remote listener runs as machine accounts.

Applies to