UA Bundle SDK .NET  2.2.3.276
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Groups Pages
UnifiedAutomation.UaBase.ICertificateStore Interface Reference

Provides access to a certificate store. More...

Inherits IEnumerable< ICertificate >, and IDisposable.

Inherited by UnifiedAutomation.UaBase.DirectoryCertificateStore, and UnifiedAutomation.UaBase.WindowsCertificateStore.

Public Member Functions

ICertificate Find (string thumbprint)
 Finds a certificate in the store. More...
 
ICertificate Find (string thumbprint, bool needPrivateKey)
 Finds a certificate in the store. More...
 
ICertificate Find (string subjectName, string thumbprint, bool needPrivateKey)
 Finds a certificate in the store. More...
 
void Add (ICertificate certificate, bool replaceExisting, bool savePrivateKey)
 Adds the specified certificate to the store. More...
 
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...
 

Properties

string StoreType [get]
 Gets the store type. More...
 
string StorePath [get]
 Gets the store path. More...
 
CertificateValidationOptions ValidationOptions [get, set]
 Gets or sets the validation options. More...
 

Detailed Description

Provides access to a certificate store.

Member Function Documentation

void UnifiedAutomation.UaBase.ICertificateStore.Add ( ICertificate  certificate,
bool  replaceExisting,
bool  savePrivateKey 
)

Adds the specified certificate to the store.

Parameters
certificateThe certificate.
replaceExistingif set to true any existing certificate is replaced.
savePrivateKeyif set to true any private key is saved as well.

Implemented in UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DirectoryCertificateStore.

ICertificate UnifiedAutomation.UaBase.ICertificateStore.Find ( string  thumbprint)

Finds a certificate in the store.

Parameters
thumbprintThe thumbprint.
Returns
The certificate; null if not found.

Implemented in UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DirectoryCertificateStore.

ICertificate UnifiedAutomation.UaBase.ICertificateStore.Find ( string  thumbprint,
bool  needPrivateKey 
)

Finds a certificate in the store.

Parameters
thumbprintThe thumbprint.
needPrivateKeyif set to true the certificate is only returned if a private key is accessible.
Returns
The certificate; null if not found.

Implemented in UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DirectoryCertificateStore.

ICertificate UnifiedAutomation.UaBase.ICertificateStore.Find ( string  subjectName,
string  thumbprint,
bool  needPrivateKey 
)

Finds a certificate in the store.

Parameters
subjectNameThe subject name.
thumbprintThe thumbprint.
needPrivateKeyif set to true the certificate is only returned if a private key is accessible.
Returns

Implemented in UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DirectoryCertificateStore.

string UnifiedAutomation.UaBase.ICertificateStore.GetPrivateKeyFilePath ( string  thumbprint)

Gets the private key file path.

Parameters
thumbprintThe thumbprint.
Returns
The private key file path. Null if the private key was not found.

Implemented in UnifiedAutomation.UaBase.DirectoryCertificateStore, and UnifiedAutomation.UaBase.WindowsCertificateStore.

StatusCode UnifiedAutomation.UaBase.ICertificateStore.IsRevoked ( ICertificate  issuer,
ICertificate  certificate 
)

Determines whether the specified certificate has been revoked by the issuer.

Parameters
issuerThe issuer.
certificateThe certificate.
Returns
Good if the certificate is fine. An error status if a problem occurred.

Implemented in UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DirectoryCertificateStore.

void UnifiedAutomation.UaBase.ICertificateStore.Remove ( string  thumbprint)

Removes the specified thumbprint.

Parameters
thumbprintThe thumbprint.

Implemented in UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DirectoryCertificateStore.

Property Documentation

string UnifiedAutomation.UaBase.ICertificateStore.StorePath
get

Gets the store path.

string UnifiedAutomation.UaBase.ICertificateStore.StoreType
get

Gets the store type.

CertificateValidationOptions UnifiedAutomation.UaBase.ICertificateStore.ValidationOptions
getset

Gets or sets the validation options.

The validation options.


The documentation for this interface was generated from the following file: