C# Класс Goedel.Cryptography.PKIX.Certificate

Certificate
Наследование: Goedel.ASN1.Root
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Signature byte[]
SignatureAlgorithm Goedel.Cryptography.PKIX.AlgorithmIdentifier
TBSCertificate Goedel.Cryptography.PKIX.TBSCertificate

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

Метод Описание
Certificate ( CryptoProvider SubjectKey, Application Application ) : System

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.

Certificate ( KeyPair SubjectKey, Application Application ) : System

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.

Certificate ( KeyPair SubjectKey, Application Application, Certificate SigningCertificate ) : System

Create an anonymous certificate with the specified key uses, subject Key and sign with the specified key.

Default lifespan is 20 years.

Certificate ( KeyPair SubjectKey, Application Application, string Subject, string SubjectAltName ) : System

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.

Certificate ( byte Data ) : System

Create a certificate from binary data.

Encode ( Goedel Buffer ) : void

Encode ASN.1 class members to specified buffer. NB Assinine ASN.1 DER encoding rules requires members be added in reverse order.

Sign ( ) : void

Self-sign certificate. The issuer name and key identifier are taken from the TBS certificate.

Sign ( Certificate SigningCertificate ) : void

Sign certificate. The issuer name and key identifier are taken from the signing certificate.

Sign ( CryptoProviderSignature Signer ) : void

Sign certificate.

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

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

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.
public Certificate ( CryptoProvider SubjectKey, Application Application ) : System
SubjectKey CryptoProvider Cryptographic provider for the subject key.
Application Application Certificate application(s).
Результат System

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

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.
public Certificate ( KeyPair SubjectKey, Application Application ) : System
SubjectKey KeyPair Cryptographic provider for the subject key.
Application Application Certificate application(s).
Результат System

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

Create an anonymous certificate with the specified key uses, subject Key and sign with the specified key.

Default lifespan is 20 years.

public Certificate ( KeyPair SubjectKey, Application Application, Certificate SigningCertificate ) : System
SubjectKey KeyPair Cryptographic provider for the subject key.
Application Application Certificate application(s).
SigningCertificate Certificate Certificate of signer.
Результат System

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

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.
public Certificate ( KeyPair SubjectKey, Application Application, string Subject, string SubjectAltName ) : System
SubjectKey KeyPair Cryptographic provider for the subject key.
Application Application Certificate application(s).
Subject string Subject name.
SubjectAltName string The certificate subject altname
Результат System

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

Create a certificate from binary data.
public Certificate ( byte Data ) : System
Data byte Binary certificate data
Результат System

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

Encode ASN.1 class members to specified buffer. NB Assinine ASN.1 DER encoding rules requires members be added in reverse order.
public Encode ( Goedel Buffer ) : void
Buffer Goedel Output buffer
Результат void

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

Self-sign certificate. The issuer name and key identifier are taken from the TBS certificate.
public Sign ( ) : void
Результат void

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

Sign certificate. The issuer name and key identifier are taken from the signing certificate.
public Sign ( Certificate SigningCertificate ) : void
SigningCertificate Certificate Certificate of signer.
Результат void

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

Sign certificate.
public Sign ( CryptoProviderSignature Signer ) : void
Signer CryptoProviderSignature Cryptographic provider for the signer.
Результат void

Описание свойств

Signature публичное свойство

ASN.1 member Signature
public byte[] Signature
Результат byte[]

SignatureAlgorithm публичное свойство

ASN.1 member SignatureAlgorithm
public Goedel.Cryptography.PKIX.AlgorithmIdentifier SignatureAlgorithm
Результат Goedel.Cryptography.PKIX.AlgorithmIdentifier

TBSCertificate публичное свойство

ASN.1 member TBSCertificate
public Goedel.Cryptography.PKIX.TBSCertificate TBSCertificate
Результат Goedel.Cryptography.PKIX.TBSCertificate