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