Provides access to the windows certificate store.
More...
Inherits UnifiedAutomation.UaBase.ICertificateStore.
|
| WindowsCertificateStore (string storePath) |
| Initializes a new instance of the WindowsCertificateStore class. More...
|
|
| WindowsCertificateStore (CertificateStoreSettings settings) |
|
void | Dispose () |
| May be called by the application to clean up resources. More...
|
|
ICertificate | Find (string subjectName, string thumbprint, bool needPrivateKey=false) |
| Finds a certificate in the store. More...
|
|
ICertificate | Find (string thumbprint, bool needPrivateKey=false) |
| Finds a certificate in the store. More...
|
|
ICertificate | Find (string subjectName, string thumbprint, bool needPrivateKey, string privateKeyPassword) |
|
void | Add (ICertificate certificate, bool replaceExisting, bool savePrivateKey) |
| Adds the specified certificate to the store. More...
|
|
void | Add (ICertificate certificate, bool replaceExisting, bool savePrivateKey, string privateKeyPassword) |
|
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 | GetPrivateKeyFilePath (string thumbprint) |
| Gets the private key file path. More...
|
|
virtual ICertificateRevocationList | ParseCRL (byte[] derData) |
|
virtual IList
< ICertificateRevocationList > | GetCRLs (ICertificate issuer) |
|
virtual void | AddCRLs (IList< ICertificateRevocationList > crls, bool deleteExisting) |
|
IEnumerator< ICertificate > | GetEnumerator () |
| Returns an enumerator that iterates through the collection. More...
|
|
string | Format () |
| Returns the string representation of the store. More...
|
|
|
virtual void | Dispose (bool disposing) |
| Cleans up all resources held by the object. More...
|
|
Provides access to the windows certificate store.
The WindowsCertificateStore does not support CRLs.
UnifiedAutomation.UaBase.WindowsCertificateStore.WindowsCertificateStore |
( |
string |
storePath | ) |
|
|
inline |
Initializes a new instance of the WindowsCertificateStore class.
- Parameters
-
Syntax (items enclosed in [] are optional):
[\HostName\]StoreType[\(ServiceName | UserSid)]\SymbolicName
- HostName
- the name of the machine where the store resides.
- SymbolicName
- one of LocalMachine, CurrentUser, User or Service
- ServiceName
- the name of an NT service.
- UserSid
- the SID for a user account.
- SymbolicName
- the symbolic name of the store (e.g. My, Root, Trust, CA, etc.).
Examples:
\MYPC\LocalMachine\My
CurrentUser\Trust
\MYPC\Service\My UA Server\UA Applications
User\S-1-5-25\Root
void UnifiedAutomation.UaBase.WindowsCertificateStore.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. |
void UnifiedAutomation.UaBase.WindowsCertificateStore.Dispose |
( |
| ) |
|
|
inline |
May be called by the application to clean up resources.
virtual void UnifiedAutomation.UaBase.WindowsCertificateStore.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
Cleans up all resources held by the object.
Enumerates the available windows certificate store.
ICertificate UnifiedAutomation.UaBase.WindowsCertificateStore.Find |
( |
string |
subjectName, |
|
|
string |
thumbprint, |
|
|
bool |
needPrivateKey = false |
|
) |
| |
|
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
ICertificate UnifiedAutomation.UaBase.WindowsCertificateStore.Find |
( |
string |
thumbprint, |
|
|
bool |
needPrivateKey = false |
|
) |
| |
|
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
Implements UnifiedAutomation.UaBase.ICertificateStore.
string UnifiedAutomation.UaBase.WindowsCertificateStore.Format |
( |
| ) |
|
|
inline |
Returns the string representation of the store.
IEnumerator<ICertificate> UnifiedAutomation.UaBase.WindowsCertificateStore.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.WindowsCertificateStore.GetPrivateKeyFilePath |
( |
string |
thumbprint | ) |
|
|
inline |
void UnifiedAutomation.UaBase.WindowsCertificateStore.Remove |
( |
string |
thumbprint | ) |
|
|
inline |
string UnifiedAutomation.UaBase.WindowsCertificateStore.HostName |
|
get |
string UnifiedAutomation.UaBase.WindowsCertificateStore.ServiceNameOrUserSid |
|
get |
The service name or user SID.
string UnifiedAutomation.UaBase.WindowsCertificateStore.SymbolicName |
|
get |
The symbolic name for the store.
Gets or sets the validation options.
The validation options.
WindowsStoreType UnifiedAutomation.UaBase.WindowsCertificateStore.WindowsStoreType |
|
get |
The type of windows store.
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaBase.Windows/Security/WindowsCertificateStore.cs