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:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기