Show / Hide Table of Contents
Editar no GitHub

Class Certificate

Inheritance
Object
Certificate
AttributeCertificate
PKCertificate
Inherited Members
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public abstract class Certificate

Fields

| Improve this Doc View Source

issuer

Declaration
protected PKCertificate issuer
Field Value
Type Description
PKCertificate

Properties

| Improve this Doc View Source

AuthorityInformationAccess

Declaration
protected AuthorityInformationAccess AuthorityInformationAccess { get; }
Property Value
Type Description
AuthorityInformationAccess
| Improve this Doc View Source

CAIssuersUri

Declaration
public Uri CAIssuersUri { get; }
Property Value
Type Description
Uri
| Improve this Doc View Source

EncodedValue

Declaration
public byte[] EncodedValue { get; protected set; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

Extensions

Declaration
public X509Extensions Extensions { get; protected set; }
Property Value
Type Description
X509Extensions
| Improve this Doc View Source

IsSelfSigned

Denotes whether this is a self-signed certificate (root certificate) or not.

NOTICE: never test the condition Issuer==null to assertain if a certificate is self-signed, since that condition may throw an exception in case the certificate is not a self-signed certificate but its issuer could not be located. For such purposes, use this property instead.

Declaration
public abstract bool IsSelfSigned { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Issuer

The certificate's issuer public key certificate, or null if the certificate is self-signed. If the certificate is not self signed but the issuer cannot be found, this property throws a CertificateIssuerNotFoundException. In order to check if the issuer was found, use the property IssuerFound before calling this property.

NOTICE: never test the condition Issuer==null to assertain if a PKCertificate is self-signed. For such purposes, use the property IsSelfSigned instead.

Declaration
public PKCertificate Issuer { get; }
Property Value
Type Description
PKCertificate
| Improve this Doc View Source

IssuerDisplayName

Declaration
public abstract string IssuerDisplayName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

IssuerDN

Declaration
protected abstract Name IssuerDN { get; }
Property Value
Type Description
Name
| Improve this Doc View Source

IssuerFound

Denotes whether the certificate's issuer was found. Returns false for self-signed certificates.

NOTICE: this property is not exactly a negation of the IssuerNotFound property, since both properties return false for self-signed certificates.

Declaration
public bool IssuerFound { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IssuerKeyIdentifier

Declaration
public byte[] IssuerKeyIdentifier { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

IssuerNotFound

Denothes whether the certificate's issuer was not found. Returns false for self-signed certificates.

NOTICE: this property is not exactly a negation of the IssuerFound property, since both properties return false for self-signed certificates.

Declaration
public bool IssuerNotFound { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

OcspUri

Declaration
public Uri OcspUri { get; }
Property Value
Type Description
Uri
| Improve this Doc View Source

SerialNumber

Declaration
public BigInteger SerialNumber { get; protected set; }
Property Value
Type Description
BigInteger
| Improve this Doc View Source

SignatureAlgorithm

Declaration
public SignatureAlgorithm SignatureAlgorithm { get; protected set; }
Property Value
Type Description
SignatureAlgorithm
| Improve this Doc View Source

SignatureValue

Declaration
public byte[] SignatureValue { get; protected set; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

SubjectDisplayName

Declaration
public abstract string SubjectDisplayName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

TbsCertificateEncoded

Declaration
protected byte[] TbsCertificateEncoded { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

ThumbprintSHA1

Declaration
public byte[] ThumbprintSHA1 { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

ThumbprintSHA256

Declaration
public byte[] ThumbprintSHA256 { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

TrustAnchor

Returns the trust anchor for this certificate, that is, the root certificate at the top of the certification chain. Throws a CertificateIssuerNotFoundException if the certification chain cannot be determined all the way to a root certificate.

Declaration
public PKCertificate TrustAnchor { get; }
Property Value
Type Description
PKCertificate
| Improve this Doc View Source

ValidityEnd

Declaration
public DateTimeOffset ValidityEnd { get; protected set; }
Property Value
Type Description
DateTimeOffset
| Improve this Doc View Source

ValidityStart

Declaration
public DateTimeOffset ValidityStart { get; protected set; }
Property Value
Type Description
DateTimeOffset

Methods

| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)
| Improve this Doc View Source

GetCertificateChain()

Returns the certificate chain from this certificate up to the root certificate

Declaration
public List<Certificate> GetCertificateChain()
Returns
Type Description
List<Certificate>

The complete certificate chain, starting with this certificate and ending on the root certificate.

| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()
| Improve this Doc View Source

GetTbsCertificateEncoded()

Declaration
protected abstract byte[] GetTbsCertificateEncoded()
Returns
Type Description
Byte[]
| Improve this Doc View Source

TryFillIssuer(ICertificateStore)

Declaration
protected void TryFillIssuer(ICertificateStore certStore)
Parameters
Type Name Description
ICertificateStore certStore
| Improve this Doc View Source

Validate(CertificateValidationOptions)

Declaration
public ValidationResults Validate(CertificateValidationOptions validationOptions)
Parameters
Type Name Description
CertificateValidationOptions validationOptions
Returns
Type Description
ValidationResults
| Improve this Doc View Source

Validate(ITrustArbitrator)

Declaration
public ValidationResults Validate(ITrustArbitrator trustArbitrator)
Parameters
Type Name Description
ITrustArbitrator trustArbitrator
Returns
Type Description
ValidationResults
Back to top Copyright © 2015-2020 Lacuna Software