C# Class Opc.Ua.CertificateIdentifierCollection

A collection of CertificateIdentifier objects.
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Method Details

Add() public méthode

Adds a certificate to the store.
public Add ( X509Certificate2 certificate ) : System.Threading.Tasks.Task
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
Résultat System.Threading.Tasks.Task

AddCRL() public méthode

Adds a CRL to the store.
public AddCRL ( X509CRL crl ) : void
crl X509CRL
Résultat void

Close() public méthode

Closes the store.
public Close ( ) : void
Résultat void

Delete() public méthode

Deletes a certificate from the store.
public Delete ( string thumbprint ) : Task
thumbprint string The thumbprint.
Résultat Task

DeleteCRL() public méthode

Removes a CRL from the store.
public DeleteCRL ( X509CRL crl ) : bool
crl X509CRL
Résultat bool

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Enumerate() public méthode

Enumerates the certificates in the store.
Identifiers which do not refer to valid certificates are ignored.
public Enumerate ( ) : Task
Résultat Task

EnumerateCRLs() public méthode

Returns the CRLs in the store.
public EnumerateCRLs ( ) : List
Résultat List

EnumerateCRLs() public méthode

Returns the CRLs for the issuer.
public EnumerateCRLs ( X509Certificate2 issuer ) : List
issuer X509Certificate2
Résultat List

FindByThumbprint() public méthode

Finds the certificate with the specified thumprint.
public FindByThumbprint ( string thumbprint ) : Task
thumbprint string The thumbprint.
Résultat Task

GetAccessRules() public méthode

Returns the access rules that are currently applied to the store.
public GetAccessRules ( ) : IList
Résultat IList

GetAccessRules() public méthode

Returns the access rules that are currently applied to the certficate's private key.
public GetAccessRules ( string thumbprint ) : IList
thumbprint string The thumbprint.
Résultat IList

GetPrivateKeyFilePath() public méthode

Returns the file containing the private key for the specified certificate.
public GetPrivateKeyFilePath ( string thumbprint ) : string
thumbprint string
Résultat string

IsRevoked() public méthode

Checks if issuer has revoked the certificate.
public IsRevoked ( X509Certificate2 issuer, X509Certificate2 certificate ) : StatusCode
issuer X509Certificate2
certificate X509Certificate2
Résultat StatusCode

MemberwiseClone() public méthode

Creates a new object that is a copy of the current instance.
public MemberwiseClone ( ) : object
Résultat object

Open() public méthode

Opens the store at the specified location.
The syntax depends on the store implementation.
public Open ( string location ) : void
location string The location.
Résultat void

SetAccessRules() public méthode

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.
Résultat void

SetAccessRules() public méthode

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.
Résultat void