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

A collection of CertificateIdentifier objects.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Add ( X509Certificate2 certificate ) : System.Threading.Tasks.Task

Adds a certificate to the store.

AddCRL ( X509CRL crl ) : void

Adds a CRL to the store.

Close ( ) : void

Closes the store.

Delete ( string thumbprint ) : Task

Deletes a certificate from the store.

DeleteCRL ( X509CRL crl ) : bool

Removes a CRL from the store.

Dispose ( ) : void

Frees any unmanaged resources.

Enumerate ( ) : Task

Enumerates the certificates in the store.

Identifiers which do not refer to valid certificates are ignored.

EnumerateCRLs ( ) : List

Returns the CRLs in the store.

EnumerateCRLs ( X509Certificate2 issuer ) : List

Returns the CRLs for the issuer.

FindByThumbprint ( string thumbprint ) : Task

Finds the certificate with the specified thumprint.

GetAccessRules ( ) : IList

Returns the access rules that are currently applied to the store.

GetAccessRules ( string thumbprint ) : IList

Returns the access rules that are currently applied to the certficate's private key.

GetPrivateKeyFilePath ( string thumbprint ) : string

Returns the file containing the private key for the specified certificate.

IsRevoked ( X509Certificate2 issuer, X509Certificate2 certificate ) : StatusCode

Checks if issuer has revoked the certificate.

MemberwiseClone ( ) : object

Creates a new object that is a copy of the current instance.

Open ( string location ) : void

Opens the store at the specified location.

The syntax depends on the store implementation.

SetAccessRules ( IList rules, bool replaceExisting ) : void

Sets the access rules that are currently applied to the store.

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

Sets the access rules that are currently applied to the certficate's private key.

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

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

An overrideable version of the Dispose.

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

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

Adds a certificate to the store.
public Add ( X509Certificate2 certificate ) : System.Threading.Tasks.Task
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
Результат System.Threading.Tasks.Task

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

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

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

Closes the store.
public Close ( ) : void
Результат void

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

Deletes a certificate from the store.
public Delete ( string thumbprint ) : Task
thumbprint string The thumbprint.
Результат Task

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

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

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

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

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

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Enumerates the certificates in the store.
Identifiers which do not refer to valid certificates are ignored.
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 X509Certificate2
Результат List

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

Finds the certificate with the specified thumprint.
public FindByThumbprint ( string thumbprint ) : Task
thumbprint string The thumbprint.
Результат Task

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

Returns the access rules that are currently applied to the store.
public GetAccessRules ( ) : IList
Результат IList

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

Returns the access rules that are currently applied to the certficate's private key.
public GetAccessRules ( string thumbprint ) : IList
thumbprint string The thumbprint.
Результат IList

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

Returns the file containing the private key for the specified certificate.
public GetPrivateKeyFilePath ( string thumbprint ) : string
thumbprint string
Результат string

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

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

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

Creates a new object that is a copy of the current instance.
public MemberwiseClone ( ) : object
Результат object

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

Opens the store at the specified location.
The syntax depends on the store implementation.
public Open ( string location ) : void
location string The location.
Результат void

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

Sets the access rules that are currently applied to the store.
public SetAccessRules ( IList rules, bool replaceExisting ) : void
rules IList The rules.
replaceExisting bool if set to true the existing access rules are replaced.
Результат void

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

Sets the access rules that are currently applied to the certficate's private key.
public SetAccessRules ( string thumbprint, IList rules, bool replaceExisting ) : void
thumbprint string The thumbprint.
rules IList The rules.
replaceExisting bool if set to true the existing access rules are replaced.
Результат void