C# 클래스 Opc.Ua.DirectoryCertificateStore

Provides access to a simple file based certificate store.
상속: ICertificateStore
파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary 1 사용 예제들

공개 메소드들

메소드 설명
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