Provides access to a directory based certificate store.
More...
Inherits UnifiedAutomation.UaBase.ICertificateStore.
|
virtual void | Dispose (bool disposing) |
| An overrideable version of the Dispose. More...
|
|
Provides access to a directory based certificate store.
UnifiedAutomation.UaBase.DirectoryCertificateStore.DirectoryCertificateStore |
( |
string |
storePath | ) |
|
|
inline |
UnifiedAutomation.UaBase.DirectoryCertificateStore.DirectoryCertificateStore |
( |
string |
storePath, |
|
|
bool |
noPrivateKeys |
|
) |
| |
|
inline |
Initializes a new instance of the DirectoryCertificateStore class.
- Parameters
-
storePath | The store path. |
noPrivateKeys | if set to true [no private keys]. |
void UnifiedAutomation.UaBase.DirectoryCertificateStore.Add |
( |
ICertificate |
certificate, |
|
|
bool |
replaceExisting, |
|
|
bool |
savePrivateKey |
|
) |
| |
|
inline |
Adds the specified certificate to the store.
- Parameters
-
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.
void UnifiedAutomation.UaBase.DirectoryCertificateStore.AddCRL |
( |
X509CRL |
crl | ) |
|
|
inline |
bool UnifiedAutomation.UaBase.DirectoryCertificateStore.DeleteCRL |
( |
X509CRL |
crl | ) |
|
|
inline |
Removes a CRL from the store.
void UnifiedAutomation.UaBase.DirectoryCertificateStore.Dispose |
( |
| ) |
|
|
inline |
Frees any unmanaged resources.
virtual void UnifiedAutomation.UaBase.DirectoryCertificateStore.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
An overrideable version of the Dispose.
- Parameters
-
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
List<X509CRL> UnifiedAutomation.UaBase.DirectoryCertificateStore.EnumerateCRLs |
( |
ICertificate |
issuer | ) |
|
|
inline |
Returns the CRLs for the issuer.
- Parameters
-
- Returns
- The CRLs.
ICertificate UnifiedAutomation.UaBase.DirectoryCertificateStore.Find |
( |
string |
thumbprint | ) |
|
|
inline |
ICertificate UnifiedAutomation.UaBase.DirectoryCertificateStore.Find |
( |
string |
thumbprint, |
|
|
bool |
needPrivateKey |
|
) |
| |
|
inline |
Finds a certificate in the store.
- Parameters
-
thumbprint | The thumbprint. |
needPrivateKey | if set to true the certificate is only returned if a private key is accessible. |
- Returns
- The certificate; null if not found.
Implements UnifiedAutomation.UaBase.ICertificateStore.
ICertificate UnifiedAutomation.UaBase.DirectoryCertificateStore.Find |
( |
string |
subjectName, |
|
|
string |
thumbprint, |
|
|
bool |
needPrivateKey |
|
) |
| |
|
inline |
Finds a certificate in the store.
- Parameters
-
subjectName | The subject name. |
thumbprint | The thumbprint. |
needPrivateKey | if set to true the certificate is only returned if a private key is accessible. |
- Returns
Implements UnifiedAutomation.UaBase.ICertificateStore.
ICertificate UnifiedAutomation.UaBase.DirectoryCertificateStore.Find |
( |
string |
subjectName, |
|
|
string |
thumbprint, |
|
|
string |
password |
|
) |
| |
|
inline |
Finds a password protected private key in the store.
- Parameters
-
subjectName | The subject name. |
thumbprint | The thumbprint. |
password | The password. |
- Returns
- The certificate with the private key.
string [] UnifiedAutomation.UaBase.DirectoryCertificateStore.GetCrlFilePaths |
( |
string |
thumbprint | ) |
|
|
inline |
Gets the CRL file paths.
- Parameters
-
thumbprint | The thumbprint. |
- Returns
IEnumerator<ICertificate> UnifiedAutomation.UaBase.DirectoryCertificateStore.GetEnumerator |
( |
| ) |
|
|
inline |
Returns an enumerator that iterates through the collection.
- Returns
- A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
string UnifiedAutomation.UaBase.DirectoryCertificateStore.GetPrivateKeyFilePath |
( |
string |
thumbprint | ) |
|
|
inline |
string UnifiedAutomation.UaBase.DirectoryCertificateStore.GetPublicKeyFilePath |
( |
string |
thumbprint | ) |
|
|
inline |
Gets the public key file path.
- Parameters
-
thumbprint | The thumbprint. |
- Returns
Determines whether the specified certificate has been revoked by the issuer.
- Parameters
-
issuer | The issuer. |
certificate | The certificate. |
- Returns
- Good if the certificate is fine. An error status if a problem occurred.
Implements UnifiedAutomation.UaBase.ICertificateStore.
void UnifiedAutomation.UaBase.DirectoryCertificateStore.Remove |
( |
string |
thumbprint | ) |
|
|
inline |
bool UnifiedAutomation.UaBase.DirectoryCertificateStore.NoPrivateKeys |
|
get |
Gets or sets a value indicating whether any private keys are found in the store.
true
if [no private keys]; otherwise, false
.
string UnifiedAutomation.UaBase.DirectoryCertificateStore.StorePath |
|
get |
string UnifiedAutomation.UaBase.DirectoryCertificateStore.StoreType |
|
get |
Gets or sets the validation options.
The validation options.
The documentation for this class was generated from the following file:
- D:/work/uasdknet/src/UaBase/Security/DirectoryCertificateStore.cs