UA Bundle SDK .NET
2.2.0.255
|
Provides access to a directory based certificate store. More...
Inherits UnifiedAutomation.UaBase.ICertificateStore.
Public Member Functions | |
DirectoryCertificateStore (string storePath) | |
Initializes a new instance of the DirectoryCertificateStore class. More... | |
DirectoryCertificateStore (string storePath, bool noPrivateKeys) | |
Initializes a new instance of the DirectoryCertificateStore class. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
ICertificate | Find (string thumbprint) |
Finds the specified thumbprint. More... | |
ICertificate | Find (string thumbprint, bool needPrivateKey) |
Finds a certificate in the store. More... | |
ICertificate | Find (string subjectName, string thumbprint, bool needPrivateKey) |
Finds a certificate in the store. More... | |
void | Add (ICertificate certificate, bool replaceExisting, bool savePrivateKey) |
Adds the specified certificate to the store. More... | |
void | Remove (string thumbprint) |
Removes the specified thumbprint. More... | |
StatusCode | IsRevoked (ICertificate issuer, ICertificate certificate) |
Determines whether the specified certificate has been revoked by the issuer. More... | |
string | GetPublicKeyFilePath (string thumbprint) |
Gets the public key file path. More... | |
string | GetPrivateKeyFilePath (string thumbprint) |
Gets the private key file path. More... | |
string[] | GetCrlFilePaths (string thumbprint) |
Gets the CRL file paths. More... | |
List< X509CRL > | EnumerateCRLs (ICertificate issuer) |
Returns the CRLs for the issuer. More... | |
void | AddCRL (X509CRL crl) |
Adds a CRL to the store. More... | |
bool | DeleteCRL (X509CRL crl) |
Removes a CRL from the store. More... | |
IEnumerator< ICertificate > | GetEnumerator () |
Returns an enumerator that iterates through the collection. More... | |
Properties | |
string | StoreType [get] |
Gets the store type. More... | |
string | StorePath [get] |
Gets the store path. More... | |
CertificateValidationOptions | ValidationOptions [get, set] |
Gets or sets the validation options. More... | |
bool | NoPrivateKeys [get, set] |
Gets or sets a value indicating whether any private keys are found in the store. More... | |
Properties inherited from UnifiedAutomation.UaBase.ICertificateStore | |
string | StoreType [get] |
Gets the store type. More... | |
string | StorePath [get] |
Gets the store path. More... | |
CertificateValidationOptions | ValidationOptions [get, set] |
Gets or sets the validation options. More... | |
Provides access to a directory based certificate store.
|
inline |
Initializes a new instance of the DirectoryCertificateStore class.
storePath | The store path. |
|
inline |
Initializes a new instance of the DirectoryCertificateStore class.
storePath | The store path. |
noPrivateKeys | if set to true [no private keys]. |
|
inline |
Adds the specified certificate to the store.
certificate | The certificate. |
replaceExisting | if set to true any existing certificate is replaced. |
savePrivateKey | if set to true any private key is saved as well. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
inline |
Adds a CRL to the store.
|
inline |
Removes a CRL from the store.
|
inline |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
inline |
Returns the CRLs for the issuer.
issuer | The issuer. |
|
inline |
Finds the specified thumbprint.
thumbprint | The thumbprint of the certificate. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
inline |
Finds a certificate in the store.
thumbprint | The thumbprint. |
needPrivateKey | if set to true the certificate is only returned if a private key is accessible. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
inline |
Finds a certificate in the store.
subjectName | The subject name. |
thumbprint | The thumbprint. |
needPrivateKey | if set to true the certificate is only returned if a private key is accessible. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
inline |
Gets the CRL file paths.
thumbprint | The thumbprint. |
|
inline |
Returns an enumerator that iterates through the collection.
|
inline |
Gets the private key file path.
thumbprint | The thumbprint. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
inline |
Gets the public key file path.
thumbprint | The thumbprint. |
|
inline |
Determines whether the specified certificate has been revoked by the issuer.
issuer | The issuer. |
certificate | The certificate. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
inline |
Removes the specified thumbprint.
thumbprint | The thumbprint. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
|
getset |
Gets or sets a value indicating whether any private keys are found in the store.
true
if [no private keys]; otherwise, false
.
|
get |
Gets the store path.
|
get |
Gets the store type.
|
getset |
Gets or sets the validation options.
The validation options.