UA Bundle SDK .NET
2.1.0.222
|
Provides access to a simple file based certificate store. More...
Inherits UnifiedAutomation.UaBase.ICertificateStore.
Public Member Functions | |
WindowsCertificateStore (string storePath) | |
Initializes a new instance of the WindowsCertificateStore class. | |
void | Dispose () |
May be called by the application to clean up resources. | |
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. | |
IEnumerator< ICertificate > | GetEnumerator () |
Returns an enumerator that iterates through the collection. | |
string | Format () |
Returns the string representation of the store. | |
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. | |
Static Public Member Functions | |
static IList < WindowsCertificateStore > | EnumerateStores (WindowsStoreType storeType, string hostName, string serviceNameOrUserSid) |
Enumerates the available windows certificate store. | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Cleans up all resources held by the object. | |
Properties | |
string | SymbolicName [get] |
The symbolic name for the store. | |
WindowsStoreType | WindowsStoreType [get] |
The type of windows store. | |
string | HostName [get] |
The name of the machine. | |
string | ServiceNameOrUserSid [get] |
The service name or user SID. | |
string | StoreType [get] |
Gets the store type. | |
string | StorePath [get] |
Gets the store path. | |
CertificateValidationOptions | ValidationOptions [get, set] |
Gets or sets the validation options. | |
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 simple file based certificate store.
UnifiedAutomation.UaBase.WindowsCertificateStore.WindowsCertificateStore | ( | string | storePath | ) |
Initializes a new instance of the WindowsCertificateStore class.
storePath | The store path. |
Syntax (items enclosed in [] are optional):
[\HostName\]StoreType[\(ServiceName | UserSid)]\SymbolicName
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 | ||
) |
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.WindowsCertificateStore.Dispose | ( | ) |
May be called by the application to clean up resources.
|
protectedvirtual |
Cleans up all resources held by the object.
|
static |
Enumerates the available windows certificate store.
ICertificate UnifiedAutomation.UaBase.WindowsCertificateStore.Find | ( | string | thumbprint | ) |
Finds a certificate in the store.
thumbprint | The thumbprint. |
ICertificate UnifiedAutomation.UaBase.WindowsCertificateStore.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.WindowsCertificateStore.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.WindowsCertificateStore.Format | ( | ) |
Returns the string representation of the store.
IEnumerator<ICertificate> UnifiedAutomation.UaBase.WindowsCertificateStore.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the collection.
string UnifiedAutomation.UaBase.WindowsCertificateStore.GetPrivateKeyFilePath | ( | string | thumbprint | ) |
Gets the private key file path.
thumbprint | The thumbprint. |
StatusCode UnifiedAutomation.UaBase.WindowsCertificateStore.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.WindowsCertificateStore.Remove | ( | string | thumbprint | ) |
Removes the specified thumbprint.
thumbprint | The thumbprint. |
|
get |
The name of the machine.
|
get |
The service name or user SID.
|
get |
Gets the store path.
|
get |
Gets the store type.
|
get |
The symbolic name for the store.
|
getset |
Gets or sets the validation options.
The validation options.
|
get |
The type of windows store.