Provides access to a simple file based certificate store.
More...
Inherits UnifiedAutomation.UaBase.ICertificateStore.
|
virtual void | Dispose (bool disposing) |
| Cleans up all resources held by the object. More...
|
|
Provides access to a simple file based certificate store.
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. |
Implements UnifiedAutomation.UaBase.ICertificateStore.
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 |
thumbprint | ) |
|
|
inline |
ICertificate UnifiedAutomation.UaBase.WindowsCertificateStore.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.WindowsCertificateStore.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.
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 |
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.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.StorePath |
|
get |
string UnifiedAutomation.UaBase.WindowsCertificateStore.StoreType |
|
get |
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:
- C:/work/uasdknet/src/UaBase/Security/WindowsCertificateStore.cs