.NET Based OPC UA Client/Server SDK  3.0.10.493
UnifiedAutomation.UaBase.ICertificateStore Interface Reference

Provides access to a certificate store. More...

Inherits IEnumerable< ICertificate >, and IDisposable.

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

Public Member Functions

ICertificate Find (string thumbprint, bool needPrivateKey=false)
 Finds a certificate in the store. More...
 
ICertificate Find (string subjectName, string thumbprint, bool needPrivateKey=false, string privateKeyPassword=null)
 Finds a certificate in the store. More...
 
void Add (ICertificate certificate, bool replaceExisting=true, bool savePrivateKey=false, string privateKeyPassword=null)
 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...
 
ICertificateRevocationList ParseCRL (byte[] derData)
 
IList< ICertificateRevocationListGetCRLs (ICertificate issuer=null)
 
void AddCRLs (IList< ICertificateRevocationList > crls, bool deleteExisting=false)
 

Properties

string StoreType [get]
 Gets the store type. More...
 
string StorePath [get]
 Gets the store path. More...
 
CertificateValidationOptions ValidationOptions [get]
 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 = true,
bool  savePrivateKey = false,
string  privateKeyPassword = null 
)

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.
privateKeyPasswordThe password used to save the private key.

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

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

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.DirectoryCertificateStore, UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DefaultCertificateStore.

ICertificate UnifiedAutomation.UaBase.ICertificateStore.Find ( string  subjectName,
string  thumbprint,
bool  needPrivateKey = false,
string  privateKeyPassword = null 
)

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.
privateKeyPasswordThe password needed to access the private key.
Returns

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

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, UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DefaultCertificateStore.

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.DirectoryCertificateStore, UnifiedAutomation.UaBase.WindowsCertificateStore, and UnifiedAutomation.UaBase.DefaultCertificateStore.

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

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
get

Gets or sets the validation options.

The validation options.


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