X509Credentials2 Class
- java.
lang. Object - SecurityCredentials
- system.
fabric. X509Credentials2
- system.
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 |
Protection |
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:
Method Details
getCertificateLoadPath
public String getCertificateLoadPath()
Indicates the file/ folder location of the certificate
Returns:
getProtectionLevel
public ProtectionLevel getProtectionLevel()
Gets how communication is protected, default value is ENCRYPTANDSIGN.
Returns:
getRemoteCertThumbprints
public List
Gets the list of remote certificate thumbprints, used to validate remote X509Credentials
Returns:
getRemoteX509Names
public List
Gets the list of X509Name to validate remote X509Credentials
Returns:
setProtectionLevel
public void setProtectionLevel(ProtectionLevel protectionLevel)
Sets how communication is protected, default value is ENCRYPTANDSIGN.
Parameters: