C# 클래스 Goedel.Cryptography.PKIX.TBSCertificate

TBSCertificate
상속: Goedel.ASN1.Root
파일 보기 프로젝트 열기: hallambaker/Mathematical-Mesh 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Extensions List
Issuer List
IssuerUniqueID byte[]
SerialNumber byte[]
Signature Goedel.Cryptography.PKIX.AlgorithmIdentifier
Subject List
SubjectPublicKeyInfo Goedel.Cryptography.PKIX.SubjectPublicKeyInfo
SubjectUniqueID byte[]
Validity Goedel.Cryptography.PKIX.Validity
Version int

공개 메소드들

메소드 설명
AddExtension ( Extension Extension ) : void

Add an X.509v3 extension encty

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.

SetAuthorityKeyIdentifier ( byte ID ) : void

Set the Authority Key Identifier extension

SetBasicConstraints ( bool CA, int PathLength ) : void

Set the basic constraints field

SetExtendedKeyUsage ( List Values ) : void

PKIX extended key uses

SetKeyUsage ( KeyUses KeyUses ) : void

Pack key usage data into the stupidest bit field format in the known universe

SetProfile ( Application Use ) : void

Set the profile for an end entity certificate

SetProfile ( Application Use, int PathLen ) : void

Set the profile for a certificate

SetSubjectAltName ( string Name ) : void

SetSubjectKeyIdentifier ( byte ID ) : void

Set the subject key identifier extension.

SetValidity ( ) : void

Set the default validity interval of 1 year from the present date.

SetValidity ( System.DateTime NotBefore, System.DateTime NotAfter ) : void

Set the validity interval to the specified NotBefore and NotAfter times.

SetValidity ( System.TimeSpan TimeSpan ) : void

Set the validity interval to the present data plus a specified time span. To reduce errors caused by clock skew between machines, the time interval is backdated to one minute after midnight UTC on the day of one hour before the current time.

SetValidity ( int Years ) : void

Set the validity interval in years from the present date. To reduce errors caused by clock skew between machines, the time interval is backdated to one minute after midnight UTC on the day of one hour before the current time.

TBSCertificate ( ) : System

Default constructor.

TBSCertificate ( CryptoProvider SubjectKey, List SubjectName ) : System

Construct from a subject key, subject name and issuer name.

TBSCertificate ( KeyPair SubjectKey, List SubjectName ) : System

Construct from a subject key, subject name and issuer name.

TBSCertificate ( X509Certificate2 X509Cert ) : System

Create a TBSCertificate item from a X509Certificate2 object.

비공개 메소드들

메소드 설명
Assanine_wankathon ( int data ) : byte[]
Parse ( X509Extension X509Extension ) : Extension
Parse ( X500DistinguishedName DN ) : List

메소드 상세

AddExtension() 공개 메소드

Add an X.509v3 extension encty
public AddExtension ( Extension Extension ) : void
Extension Extension The extension to add.
리턴 void

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

SetAuthorityKeyIdentifier() 공개 메소드

Set the Authority Key Identifier extension
public SetAuthorityKeyIdentifier ( byte ID ) : void
ID byte
리턴 void

SetBasicConstraints() 공개 메소드

Set the basic constraints field
public SetBasicConstraints ( bool CA, int PathLength ) : void
CA bool If true, can act as a CA
PathLength int Maximum path length of a chain.
리턴 void

SetExtendedKeyUsage() 공개 메소드

PKIX extended key uses
public SetExtendedKeyUsage ( List Values ) : void
Values List
리턴 void

SetKeyUsage() 공개 메소드

Pack key usage data into the stupidest bit field format in the known universe
public SetKeyUsage ( KeyUses KeyUses ) : void
KeyUses KeyUses PKIX Key uses.
리턴 void

SetProfile() 공개 메소드

Set the profile for an end entity certificate
public SetProfile ( Application Use ) : void
Use Application
리턴 void

SetProfile() 공개 메소드

Set the profile for a certificate
public SetProfile ( Application Use, int PathLen ) : void
Use Application
PathLen int
리턴 void

SetSubjectAltName() 공개 메소드

public SetSubjectAltName ( string Name ) : void
Name string
리턴 void

SetSubjectKeyIdentifier() 공개 메소드

Set the subject key identifier extension.
public SetSubjectKeyIdentifier ( byte ID ) : void
ID byte
리턴 void

SetValidity() 공개 메소드

Set the default validity interval of 1 year from the present date.
public SetValidity ( ) : void
리턴 void

SetValidity() 공개 메소드

Set the validity interval to the specified NotBefore and NotAfter times.
public SetValidity ( System.DateTime NotBefore, System.DateTime NotAfter ) : void
NotBefore System.DateTime First time instant that the certificate is valid.
NotAfter System.DateTime Last time instant that the certificate is valid.
리턴 void

SetValidity() 공개 메소드

Set the validity interval to the present data plus a specified time span. To reduce errors caused by clock skew between machines, the time interval is backdated to one minute after midnight UTC on the day of one hour before the current time.
public SetValidity ( System.TimeSpan TimeSpan ) : void
TimeSpan System.TimeSpan Time interval.
리턴 void

SetValidity() 공개 메소드

Set the validity interval in years from the present date. To reduce errors caused by clock skew between machines, the time interval is backdated to one minute after midnight UTC on the day of one hour before the current time.
public SetValidity ( int Years ) : void
Years int
리턴 void

TBSCertificate() 공개 메소드

Default constructor.
public TBSCertificate ( ) : System
리턴 System

TBSCertificate() 공개 메소드

Construct from a subject key, subject name and issuer name.
public TBSCertificate ( CryptoProvider SubjectKey, List SubjectName ) : System
SubjectKey CryptoProvider Key that the certificate will authenticate.
SubjectName List Subject name.
리턴 System

TBSCertificate() 공개 메소드

Construct from a subject key, subject name and issuer name.
public TBSCertificate ( KeyPair SubjectKey, List SubjectName ) : System
SubjectKey KeyPair Key that the certificate will authenticate.
SubjectName List Subject name.
리턴 System

TBSCertificate() 공개 메소드

Create a TBSCertificate item from a X509Certificate2 object.
public TBSCertificate ( X509Certificate2 X509Cert ) : System
X509Cert X509Certificate2
리턴 System

프로퍼티 상세

Extensions 공개적으로 프로퍼티

ASN.1 member Extensions
public List Extensions
리턴 List

Issuer 공개적으로 프로퍼티

ASN.1 member Issuer
public List Issuer
리턴 List

IssuerUniqueID 공개적으로 프로퍼티

ASN.1 member IssuerUniqueID
public byte[] IssuerUniqueID
리턴 byte[]

SerialNumber 공개적으로 프로퍼티

ASN.1 member SerialNumber
public byte[] SerialNumber
리턴 byte[]

Signature 공개적으로 프로퍼티

ASN.1 member Signature
public Goedel.Cryptography.PKIX.AlgorithmIdentifier Signature
리턴 Goedel.Cryptography.PKIX.AlgorithmIdentifier

Subject 공개적으로 프로퍼티

ASN.1 member Subject
public List Subject
리턴 List

SubjectPublicKeyInfo 공개적으로 프로퍼티

ASN.1 member SubjectPublicKeyInfo
public Goedel.Cryptography.PKIX.SubjectPublicKeyInfo SubjectPublicKeyInfo
리턴 Goedel.Cryptography.PKIX.SubjectPublicKeyInfo

SubjectUniqueID 공개적으로 프로퍼티

ASN.1 member SubjectUniqueID
public byte[] SubjectUniqueID
리턴 byte[]

Validity 공개적으로 프로퍼티

ASN.1 member Validity
public Goedel.Cryptography.PKIX.Validity Validity
리턴 Goedel.Cryptography.PKIX.Validity

Version 공개적으로 프로퍼티

ASN.1 member Version
public int Version
리턴 int