X509Credentials Class
Definition
- java.lang.Object
- SecurityCredentials
- system.fabric.X509Credentials
Specifies the security credentials that are based upon X.509 certificates which are located in Windows certificate store.
public class X509Credentials extends SecurityCredentials
Constructors
| X509Credentials() |
Creates a new instance of the system.fabric.X509Credentials class. |
Methods
| getFindType() |
Gets the value which indicates how to find local certificate in Windows certificate store |
| getFindValue() |
Specifies the filter value used to search local certificate in certificate store. FindType specifies the type of filter value. |
| getFindValueSecondary() |
Gets the secondary find value for loading local certificate credential. |
| getIssuerThumbprints() |
When not empty, this dictates the certificate thumbprints of direct issuer of remote certificates. |
| getProtectionLevel() |
Gets how communication is protected, default value is ENCRYPTANDSIGN. |
| getRemoteCertThumbprints() |
Gets the list of remote certificate thumbprints, used to validate remote X509Credentials |
| getRemoteCommonNames() |
Indicates the expected common names of remote certificates that you want Service Fabric to validate against. |
| getRemoteX509Names() |
Gets the list of X509Name to validate remote X509Credentials |
| getStoreLocation() |
Gets the location of the certificate store. |
| getStoreName() |
Gets the name of the store where the certificate is stored. |
| setFindType(X509FindType findType) |
Specifies how to find local certificate in Windows certificate store. Supported values: FINDBYTHUMBPRINT - find certificate by certificate thumbprint FINDBYSUBJECTNAME - find certificate by subject distinguished name or common name, when subject distinguished name is provided in FindValue, subject name in the certificate must be encoded in ASN encoding due to a restriction in native Windows crypto API. There is no such restriction when common name is provided in FindValue. |
| setFindValue(Object findValue) |
Specifies the filter value used to search local certificate in certificate store. FindType specifies the type of filter value. |
| setFindValueSecondary(Object findValueSecondary) |
Sets the secondary find value for loading local certificate credential. |
| setProtectionLevel(ProtectionLevel protectionLevel) |
Sets how communication is protected, default value is ENCRYPTANDSIGN. |
| setStoreLocation(X509StoreLocation storeLocation) |
Sets the location of the certificate store. |
| setStoreName(String storeName) |
Sets the name of the store where the certificate is stored. |