你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SecurityCredentials Class

  • java.lang.Object
    • system.fabric.SecurityCredentials

public class SecurityCredentials

An abstract base class for types that represent security credentials.

Method Summary

Modifier and Type Method and Description
CredentialType getCredentialType()

Indicates the type of security credentials to use in order to secure the cluster.

SecurityCredentials loadFrom(FabricCodePackageActivationContext codePackageActivationContext, String configPackageName, String fabricServiceReplicatorSecurityConfigSectionName)

Instantiate SecurityCredentials object from service configuration settings file. Not yet implemented.

void setCredentialType(CredentialType credentialType)

Indicates the type of security credentials to use in order to secure the cluster.

Method Details

getCredentialType

public CredentialType getCredentialType()

Indicates the type of security credentials to use in order to secure the cluster.

Returns:

The type of security credentials to use in order to secure the cluster.

loadFrom

public static SecurityCredentials loadFrom(FabricCodePackageActivationContext codePackageActivationContext, String configPackageName, String fabricServiceReplicatorSecurityConfigSectionName)

Instantiate SecurityCredentials object from service configuration settings file. Not yet implemented.

Parameters:

codePackageActivationContext - The current code package activation context CodePackageActivationContext.
configPackageName - The current configuration package name.
fabricServiceReplicatorSecurityConfigSectionName - The section within the configuration file that defines all the security settings.

Returns:

The security credentials.

setCredentialType

protected void setCredentialType(CredentialType credentialType)

Indicates the type of security credentials to use in order to secure the cluster.

Parameters:

credentialType - The type of security credentials to use in order to secure the cluster.

Applies to