X509Credentials Class
- java.
lang. Object - SecurityCredentials
- system.
fabric. X509Credentials
- system.
public class X509Credentials extends SecurityCredentials
Specifies the security credentials that are based upon X.509 certificates which are located in Windows certificate store.
Constructor Summary
Constructor | Description |
---|---|
X509Credentials() |
Creates a new instance of the system.fabric.X509Credentials class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
X509Find |
getFindType()
Gets the value which indicates how to find local certificate in Windows certificate store |
Object |
getFindValue()
Specifies the filter value used to search local certificate in certificate store. FindType specifies the type of filter value. |
Object |
getFindValueSecondary()
Gets the secondary find value for loading local certificate credential. |
List<String> |
getIssuerThumbprints()
When not empty, this dictates the certificate thumbprints of direct issuer of remote certificates. |
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<String> |
getRemoteCommonNames()
Indicates the expected common names of remote certificates that you want Service Fabric to validate against. |
List<X509Name> |
getRemoteX509Names()
Gets the list of X509Name to validate remote X509Credentials |
X509Store |
getStoreLocation()
Gets the location of the certificate store. |
String |
getStoreName()
Gets the name of the store where the certificate is stored. |
void |
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. |
void |
setFindValue(Object findValue)
Specifies the filter value used to search local certificate in certificate store. FindType specifies the type of filter value. |
void |
setFindValueSecondary(Object findValueSecondary)
Sets the secondary find value for loading local certificate credential. |
void |
setProtectionLevel(ProtectionLevel protectionLevel)
Sets how communication is protected, default value is ENCRYPTANDSIGN. |
void |
setStoreLocation(X509StoreLocation storeLocation)
Sets the location of the certificate store. |
void |
setStoreName(String storeName)
Sets the name of the store where the certificate is stored. |
Inherited Members
Constructor Details
X509Credentials
public X509Credentials()
Creates a new instance of the system.fabric.X509Credentials class.
Method Details
getFindType
public X509FindType getFindType()
Gets the value which indicates how to find local certificate in Windows certificate store
Returns:
getFindValue
public Object getFindValue()
Specifies the filter value used to search local certificate in certificate store. FindType specifies the type of filter value.
Returns:
getFindValueSecondary
public Object getFindValueSecondary()
Gets the secondary find value for loading local certificate credential.
Returns:
getIssuerThumbprints
public List
When not empty, this dictates the certificate thumbprints of direct issuer of remote certificates.
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:
getRemoteCommonNames
public List
Indicates the expected common names of remote certificates that you want Service Fabric to validate against.
Returns:
getRemoteX509Names
public List
Gets the list of X509Name to validate remote X509Credentials
Returns:
getStoreLocation
public X509StoreLocation getStoreLocation()
Gets the location of the certificate store.
Returns:
getStoreName
public String getStoreName()
Gets the name of the store where the certificate is stored.
Returns:
setFindType
public void 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.
Parameters:
setFindValue
public void setFindValue(Object findValue)
Specifies the filter value used to search local certificate in certificate store. FindType specifies the type of filter value.
Parameters:
setFindValueSecondary
public void setFindValueSecondary(Object findValueSecondary)
Sets the secondary find value for loading local certificate credential.
Parameters:
setProtectionLevel
public void setProtectionLevel(ProtectionLevel protectionLevel)
Sets how communication is protected, default value is ENCRYPTANDSIGN.
Parameters:
setStoreLocation
public void setStoreLocation(X509StoreLocation storeLocation)
Sets the location of the certificate store.
Parameters:
setStoreName
public void setStoreName(String storeName)
Sets the name of the store where the certificate is stored.
Parameters:
Applies to
Azure SDK for Java