다음을 통해 공유


X509Credentials2 Class

public class X509Credentials2 extends SecurityCredentials

Specifies the security credentials that are based upon X.509 certificates which are specified using the certificate path.

Constructor Summary

Constructor Description
X509Credentials2(String certificatePath)

Creates a new instance of the system.fabric.X509Credentials2 class.

Method Summary

Modifier and Type Method and Description
String getCertificateLoadPath()

Indicates the file/ folder location of the certificate

ProtectionLevel getProtectionLevel()

Gets how communication is protected, default value is ENCRYPTANDSIGN.

List<String> getRemoteCertThumbprints()

Gets the list of remote certificate thumbprints, used to validate remote X509Credentials

List<X509Name> getRemoteX509Names()

Gets the list of X509Name to validate remote X509Credentials

void setProtectionLevel(ProtectionLevel protectionLevel)

Sets how communication is protected, default value is ENCRYPTANDSIGN.

Inherited Members

Constructor Details

X509Credentials2

public X509Credentials2(String certificatePath)

Creates a new instance of the system.fabric.X509Credentials2 class.

Parameters:

certificatePath - The location of the X509 certificate

Method Details

getCertificateLoadPath

public String getCertificateLoadPath()

Indicates the file/ folder location of the certificate

Returns:

The name certificate location.

getProtectionLevel

public ProtectionLevel getProtectionLevel()

Gets how communication is protected, default value is ENCRYPTANDSIGN.

Returns:

The protection level of the credential.

getRemoteCertThumbprints

public List getRemoteCertThumbprints()

Gets the list of remote certificate thumbprints, used to validate remote X509Credentials

Returns:

List of remote certificate thumbprints, used to validate remote X509Credentials

getRemoteX509Names

public List getRemoteX509Names()

Gets the list of X509Name to validate remote X509Credentials

Returns:

the list of X509Name to validate remote X509Credentials

setProtectionLevel

public void setProtectionLevel(ProtectionLevel protectionLevel)

Sets how communication is protected, default value is ENCRYPTANDSIGN.

Parameters:

protectionLevel - The protection level of the credential.

Applies to