C# Класс Opc.Ua.DirectoryCertificateStore

Provides access to a simple file based certificate store.
Наследование: ICertificateStore
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( X509Certificate2 certificate ) : Task
AddCRL ( X509CRL crl ) : void

Adds a CRL to the store.

Close ( ) : void
Delete ( string thumbprint ) : Task
DeleteCRL ( X509CRL crl ) : bool

Removes a CRL from the store.

DirectoryCertificateStore ( ) : System

Initializes a store with the specified directory path.

Dispose ( ) : void

May be called by the application to clean up resources.

Enumerate ( ) : Task
EnumerateCRLs ( ) : List

Returns the CRLs in the store.

EnumerateCRLs ( X509Certificate2 issuer ) : List

Returns the CRLs for the issuer.

FindByThumbprint ( string thumbprint ) : Task
GetAccessRules ( ) : IList
GetAccessRules ( string thumbprint ) : IList
GetCrlFilePaths ( string thumbprint ) : string[]

Gets the CRL file paths.

GetPrivateKeyFilePath ( string thumbprint ) : string
GetPublicKeyFilePath ( string thumbprint ) : string
IsRevoked ( X509Certificate2 issuer, X509Certificate2 certificate ) : Opc.Ua.StatusCode

Checks if issuer has revoked the certificate.

LoadPrivateKey ( string thumbprint, string subjectName, string password ) : X509Certificate2

Loads the private key from a PFX file in the certificate store.

Open ( string location ) : void
SetAccessRules ( IList rules, bool replaceExisting ) : void
SetAccessRules ( string thumbprint, IList rules, bool replaceExisting ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Cleans up all resources held by the object.

Приватные методы

Метод Описание
Find ( string thumbprint ) : Entry

Finds the public key for the certificate.

GetFileName ( X509Certificate2 certificate ) : string

Returns the file name to use for the certificate.

Load ( string thumbprint ) : Entry>.IDictionary

Reads the current contents of the directory from disk.

WriteFile ( byte data, string fileName, bool includePrivateKey ) : void

Writes the data to a file.

Описание методов

Add() публичный Метод

public Add ( X509Certificate2 certificate ) : Task
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
Результат Task

AddCRL() публичный Метод

Adds a CRL to the store.
public AddCRL ( X509CRL crl ) : void
crl X509CRL
Результат void

Close() публичный Метод

public Close ( ) : void
Результат void

Delete() публичный Метод

public Delete ( string thumbprint ) : Task
thumbprint string
Результат Task

DeleteCRL() публичный Метод

Removes a CRL from the store.
public DeleteCRL ( X509CRL crl ) : bool
crl X509CRL
Результат bool

DirectoryCertificateStore() публичный Метод

Initializes a store with the specified directory path.
public DirectoryCertificateStore ( ) : System
Результат System

Dispose() публичный Метод

May be called by the application to clean up resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Cleans up all resources held by the object.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Enumerate() публичный Метод

public Enumerate ( ) : Task
Результат Task

EnumerateCRLs() публичный Метод

Returns the CRLs in the store.
public EnumerateCRLs ( ) : List
Результат List

EnumerateCRLs() публичный Метод

Returns the CRLs for the issuer.
public EnumerateCRLs ( X509Certificate2 issuer ) : List
issuer System.Security.Cryptography.X509Certificates.X509Certificate2
Результат List

FindByThumbprint() публичный Метод

public FindByThumbprint ( string thumbprint ) : Task
thumbprint string
Результат Task

GetAccessRules() публичный Метод

public GetAccessRules ( ) : IList
Результат IList

GetAccessRules() публичный Метод

public GetAccessRules ( string thumbprint ) : IList
thumbprint string
Результат IList

GetCrlFilePaths() публичный Метод

Gets the CRL file paths.
public GetCrlFilePaths ( string thumbprint ) : string[]
thumbprint string The certificate thumbprint.
Результат string[]

GetPrivateKeyFilePath() публичный Метод

public GetPrivateKeyFilePath ( string thumbprint ) : string
thumbprint string
Результат string

GetPublicKeyFilePath() публичный Метод

public GetPublicKeyFilePath ( string thumbprint ) : string
thumbprint string
Результат string

IsRevoked() публичный Метод

Checks if issuer has revoked the certificate.
public IsRevoked ( X509Certificate2 issuer, X509Certificate2 certificate ) : Opc.Ua.StatusCode
issuer System.Security.Cryptography.X509Certificates.X509Certificate2
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
Результат Opc.Ua.StatusCode

LoadPrivateKey() публичный Метод

Loads the private key from a PFX file in the certificate store.
public LoadPrivateKey ( string thumbprint, string subjectName, string password ) : X509Certificate2
thumbprint string
subjectName string
password string
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

Open() публичный Метод

public Open ( string location ) : void
location string
Результат void

SetAccessRules() публичный Метод

public SetAccessRules ( IList rules, bool replaceExisting ) : void
rules IList
replaceExisting bool
Результат void

SetAccessRules() публичный Метод

public SetAccessRules ( string thumbprint, IList rules, bool replaceExisting ) : void
thumbprint string
rules IList
replaceExisting bool
Результат void