C# Class Goedel.Cryptography.PKIX.Certificate

Certificate
Inheritance: Goedel.ASN1.Root
显示文件 Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Public Properties

Property Type Description
Signature byte[]
SignatureAlgorithm Goedel.Cryptography.PKIX.AlgorithmIdentifier
TBSCertificate Goedel.Cryptography.PKIX.TBSCertificate

Public Methods

Method Description
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.

Method Details

Certificate() public method

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).
return System

Certificate() public method

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).
return System

Certificate() public method

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.
return System

Certificate() public method

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
return System

Certificate() public method

Create a certificate from binary data.
public Certificate ( byte Data ) : System
Data byte Binary certificate data
return System

Encode() public method

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
return void

Sign() public method

Self-sign certificate. The issuer name and key identifier are taken from the TBS certificate.
public Sign ( ) : void
return void

Sign() public method

Sign certificate. The issuer name and key identifier are taken from the signing certificate.
public Sign ( Certificate SigningCertificate ) : void
SigningCertificate Certificate Certificate of signer.
return void

Sign() public method

Sign certificate.
public Sign ( CryptoProviderSignature Signer ) : void
Signer CryptoProviderSignature Cryptographic provider for the signer.
return void

Property Details

Signature public_oe property

ASN.1 member Signature
public byte[] Signature
return byte[]

SignatureAlgorithm public_oe property

ASN.1 member SignatureAlgorithm
public Goedel.Cryptography.PKIX.AlgorithmIdentifier SignatureAlgorithm
return Goedel.Cryptography.PKIX.AlgorithmIdentifier

TBSCertificate public_oe property

ASN.1 member TBSCertificate
public Goedel.Cryptography.PKIX.TBSCertificate TBSCertificate
return Goedel.Cryptography.PKIX.TBSCertificate