C# 클래스 Org.BouncyCastle.X509.X509Certificate

An Object representing an X509 Certificate. Has static methods for loading Certificates encoded in many forms that return X509Certificate Objects.
상속: X509ExtensionBase
파일 보기 프로젝트 열기: nonorganic/dssnet 1 사용 예제들

공개 메소드들

메소드 설명
CheckValidity ( ) : void

Checks if the current date is within certificate's validity period.

CheckValidity ( System.DateTime time ) : void

Checks if the given date is within certificate's validity period.

Equals ( object obj ) : bool
GetBasicConstraints ( ) : int
GetEncoded ( ) : byte[]

Return a Der encoded version of this certificate.

GetExtendedKeyUsage ( ) : IList
GetHashCode ( ) : int
GetIssuerAlternativeNames ( ) : ICollection
GetKeyUsage ( ) : bool[]

Get a key usage guidlines.

GetPublicKey ( ) : AsymmetricKeyParameter

Get the public key of the subject of the certificate.

GetSigAlgParams ( ) : byte[]

Get the signature algorithms parameters. (EG DSA Parameters)

GetSignature ( ) : byte[]

The signature.

GetSubjectAlternativeNames ( ) : ICollection
GetTbsCertificate ( ) : byte[]

Return the Der encoded TbsCertificate data. This is the certificate component less the signature. To Get the whole certificate call the GetEncoded() member.

IsValid ( DateTime time ) : bool

Return true if the nominated time is within the start and end times nominated on the certificate.

ToString ( ) : string
Verify ( AsymmetricKeyParameter key ) : void

Verify the certificate's signature using the nominated public key.

X509Certificate ( X509CertificateStructure c ) : System

보호된 메소드들

메소드 설명
CheckSignature ( AsymmetricKeyParameter publicKey, ISigner signature ) : void
GetAlternativeNames ( string oid ) : ICollection
GetX509Extensions ( ) : X509Extensions
X509Certificate ( ) : System

비공개 메소드들

메소드 설명
IsAlgIDEqual ( AlgorithmIdentifier id1, AlgorithmIdentifier id2 ) : bool

메소드 상세

CheckSignature() 보호된 메소드

protected CheckSignature ( AsymmetricKeyParameter publicKey, ISigner signature ) : void
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
signature ISigner
리턴 void

CheckValidity() 공개 메소드

Checks if the current date is within certificate's validity period.
public CheckValidity ( ) : void
리턴 void

CheckValidity() 공개 메소드

Checks if the given date is within certificate's validity period.
if the certificate is expired by given date if the certificate is not yet valid on given date
public CheckValidity ( System.DateTime time ) : void
time System.DateTime
리턴 void

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetAlternativeNames() 보호된 메소드

protected GetAlternativeNames ( string oid ) : ICollection
oid string
리턴 ICollection

GetBasicConstraints() 공개 메소드

public GetBasicConstraints ( ) : int
리턴 int

GetEncoded() 공개 메소드

Return a Der encoded version of this certificate.
public GetEncoded ( ) : byte[]
리턴 byte[]

GetExtendedKeyUsage() 공개 메소드

public GetExtendedKeyUsage ( ) : IList
리턴 IList

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetIssuerAlternativeNames() 공개 메소드

public GetIssuerAlternativeNames ( ) : ICollection
리턴 ICollection

GetKeyUsage() 공개 메소드

Get a key usage guidlines.
public GetKeyUsage ( ) : bool[]
리턴 bool[]

GetPublicKey() 공개 메소드

Get the public key of the subject of the certificate.
public GetPublicKey ( ) : AsymmetricKeyParameter
리턴 AsymmetricKeyParameter

GetSigAlgParams() 공개 메소드

Get the signature algorithms parameters. (EG DSA Parameters)
public GetSigAlgParams ( ) : byte[]
리턴 byte[]

GetSignature() 공개 메소드

The signature.
public GetSignature ( ) : byte[]
리턴 byte[]

GetSubjectAlternativeNames() 공개 메소드

public GetSubjectAlternativeNames ( ) : ICollection
리턴 ICollection

GetTbsCertificate() 공개 메소드

Return the Der encoded TbsCertificate data. This is the certificate component less the signature. To Get the whole certificate call the GetEncoded() member.
public GetTbsCertificate ( ) : byte[]
리턴 byte[]

GetX509Extensions() 보호된 메소드

protected GetX509Extensions ( ) : X509Extensions
리턴 X509Extensions

IsValid() 공개 메소드

Return true if the nominated time is within the start and end times nominated on the certificate.
public IsValid ( DateTime time ) : bool
time DateTime The time to test validity against.
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Verify() 공개 메소드

Verify the certificate's signature using the nominated public key.
If key submitted is not of the above nominated types.
public Verify ( AsymmetricKeyParameter key ) : void
key AsymmetricKeyParameter An appropriate public key parameter object, RsaPublicKeyParameters, DsaPublicKeyParameters or ECDsaPublicKeyParameters
리턴 void

X509Certificate() 보호된 메소드

protected X509Certificate ( ) : System
리턴 System

X509Certificate() 공개 메소드

public X509Certificate ( X509CertificateStructure c ) : System
c X509CertificateStructure
리턴 System