X509Certificate Class

An Object representing an X509 Certificate. Has static methods for loading Certificates encoded in many forms that return X509Certificate Objects.

Definition

Namespace: Org.BouncyCastle.X509
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class X509Certificate : X509ExtensionBase
Inheritance
Object    X509ExtensionBase    X509Certificate

Constructors

X509CertificateInitializes a new instance of the X509Certificate class
X509Certificate(Byte)Initializes a new instance of the X509Certificate class
X509Certificate(X509CertificateStructure)Initializes a new instance of the X509Certificate class

Properties

CertificateStructure 
IssuerDN Get the Issuer Distinguished Name. (Who signed the certificate.)
IssuerUniqueID Get the issuers UID.
IsValidNow Return true if the current time is within the start and end times nominated on the certificate.
NotAfter The time that this certificate is valid up to.
NotBefore The time that this certificate is valid from.
SerialNumber Return a BigInteger containing the serial number.
SigAlgName A meaningful version of the Signature Algorithm. (EG SHA1WITHRSA)
SigAlgOid Get the Signature Algorithms Object ID.
SignatureAlgorithmThe signature algorithm.
SubjectDN Get the subject of this certificate.
SubjectPublicKeyInfo Return the plain SubjectPublicKeyInfo that holds the encoded public key.
SubjectUniqueID Get the subjects UID.
TbsCertificate 
Version Return the certificate's version.

Methods

CheckSignature 
CheckSignatureValid 
CheckValidity Checks if the current date is within certificate's validity period.
CheckValidity(DateTime) Checks if the given date is within certificate's validity period.
Equals
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAlternativeNameExtension 
GetAlternativeNames 
GetBasicConstraints 
GetCriticalExtensionOids Get any critical extensions.
(Inherited from X509ExtensionBase)
GetEncoded Return the DER encoding of this certificate.
GetExtendedKeyUsage 
GetExtensionOids
(Inherited from X509ExtensionBase)
GetExtensionValue
(Inherited from X509ExtensionBase)
GetHashCode
(Overrides ObjectGetHashCode)
GetIssuerAlternativeNameExtension 
GetIssuerAlternativeNames 
GetKeyUsage Get a key usage guidlines.
GetNonCriticalExtensionOids Get non critical extensions.
(Inherited from X509ExtensionBase)
GetPublicKey Get the public key of the subject of the certificate.
GetSigAlgParams Get the signature algorithms parameters. (EG DSA Parameters)
GetSignature The signature.
GetSubjectAlternativeNameExtension 
GetSubjectAlternativeNames 
GetTbsCertificate Return the Der encoded TbsCertificate data. This is the certificate component less the signature. To Get the whole certificate call the GetEncoded() member.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetX509Extensions
(Overrides X509ExtensionBaseGetX509Extensions)
IsAlternativeSignatureValid 
IsSignatureValid(AsymmetricKeyParameter) 
IsSignatureValid(IVerifierFactoryProvider) 
IsValid Return true if the nominated time is within the start and end times nominated on the certificate.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToString
(Overrides ObjectToString)
Verify(AsymmetricKeyParameter) Verify the certificate's signature using the nominated public key.
Verify(IVerifierFactoryProvider) Verify the certificate's signature using a verifier created using the passed in verifier provider.
VerifyAltSignatureVerify the certificate's alternative signature using a verifier created using the passed in verifier provider.

See Also