Class Certificate
Assembly: Lacuna.Pki.dll
Syntax
public abstract class Certificate
Fields
|
Improve this Doc
View Source
issuer
Declaration
protected PKCertificate issuer
Field Value
Properties
|
Improve this Doc
View Source
Declaration
protected AuthorityInformationAccess AuthorityInformationAccess { get; }
Property Value
|
Improve this Doc
View Source
CAIssuersUri
Declaration
public Uri CAIssuersUri { get; }
Property Value
|
Improve this Doc
View Source
EncodedValue
Declaration
public byte[] EncodedValue { get; protected set; }
Property Value
|
Improve this Doc
View Source
Extensions
Declaration
public X509Extensions Extensions { get; protected set; }
Property Value
|
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
|
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
|
Improve this Doc
View Source
IssuerDisplayName
Declaration
public abstract string IssuerDisplayName { get; }
Property Value
|
Improve this Doc
View Source
IssuerDN
Declaration
protected abstract Name IssuerDN { get; }
Property Value
|
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
|
Improve this Doc
View Source
IssuerKeyIdentifier
Declaration
public byte[] IssuerKeyIdentifier { get; }
Property Value
|
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
|
Improve this Doc
View Source
OcspUri
Declaration
public Uri OcspUri { get; }
Property Value
|
Improve this Doc
View Source
SerialNumber
Declaration
public BigInteger SerialNumber { get; protected set; }
Property Value
|
Improve this Doc
View Source
SignatureAlgorithm
Declaration
public SignatureAlgorithm SignatureAlgorithm { get; protected set; }
Property Value
|
Improve this Doc
View Source
SignatureValue
Declaration
public byte[] SignatureValue { get; protected set; }
Property Value
|
Improve this Doc
View Source
SubjectDisplayName
Declaration
public abstract string SubjectDisplayName { get; }
Property Value
|
Improve this Doc
View Source
TbsCertificateEncoded
Declaration
protected byte[] TbsCertificateEncoded { get; }
Property Value
|
Improve this Doc
View Source
ThumbprintSHA1
Declaration
public byte[] ThumbprintSHA1 { get; }
Property Value
|
Improve this Doc
View Source
ThumbprintSHA256
Declaration
public byte[] ThumbprintSHA256 { get; }
Property Value
|
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
|
Improve this Doc
View Source
ValidityEnd
Declaration
public DateTimeOffset ValidityEnd { get; protected set; }
Property Value
|
Improve this Doc
View Source
ValidityStart
Declaration
public DateTimeOffset ValidityStart { get; protected set; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| Object |
other |
|
Returns
Overrides
|
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
Overrides
|
Improve this Doc
View Source
GetTbsCertificateEncoded()
Declaration
protected abstract byte[] GetTbsCertificateEncoded()
Returns
|
Improve this Doc
View Source
TryFillIssuer(ICertificateStore)
Declaration
protected void TryFillIssuer(ICertificateStore certStore)
Parameters
|
Improve this Doc
View Source
Validate(CertificateValidationOptions)
Declaration
public ValidationResults Validate(CertificateValidationOptions validationOptions)
Parameters
Returns
|
Improve this Doc
View Source
Validate(ITrustArbitrator)
Declaration
public ValidationResults Validate(ITrustArbitrator trustArbitrator)
Parameters
Returns