Show / Hide Table of Contents

Class X509Extensions

Inheritance
Object
X509Extensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public class X509Extensions

Properties

Item[String]

Declaration
public X509Extension this[string oid] { get; }
Parameters
Type Name Description
String oid
Property Value
Type Description
X509Extension

Methods

CheckForUnprocessedCritical(IEnumerable<String>)

Declaration
public void CheckForUnprocessedCritical(IEnumerable<string> processedExtensions)
Parameters
Type Name Description
IEnumerable<String> processedExtensions

Contains(String)

Declaration
public bool Contains(string extensionId)
Parameters
Type Name Description
String extensionId
Returns
Type Description
Boolean

Get(String, Boolean)

Declaration
public X509Extension Get(string extensionId, bool throwOnNotFound = true)
Parameters
Type Name Description
String extensionId
Boolean throwOnNotFound
Returns
Type Description
X509Extension

GetAllExtensions()

Declaration
public List<X509Extension> GetAllExtensions()
Returns
Type Description
List<X509Extension>

GetAuthorityInformationAccess()

Returns an object that allows access to the fields of the AuthorityInformationAccess extension, or null if the extension is not present.

Declaration
public AuthorityInformationAccess GetAuthorityInformationAccess()
Returns
Type Description
AuthorityInformationAccess

GetAuthorityKeyIdentifier()

Returns the bytes of the key identifier in the AuthorityKeyIdentifier extension, or null if the extension is not present.

Declaration
public byte[] GetAuthorityKeyIdentifier()
Returns
Type Description
Byte[]

GetCertificatePolicies()

Declaration
public List<CertificatePolicy> GetCertificatePolicies()
Returns
Type Description
List<CertificatePolicy>

GetCrlDistributionPoints()

Returns the distribution points in the CRLDistributionPoints extension, or null if the extension is not present.

Declaration
public List<CrlDistributionPoint> GetCrlDistributionPoints()
Returns
Type Description
List<CrlDistributionPoint>

GetCrlNumber()

Returns the number in the CRLNumber extension, or null if the extension is not present.

Declaration
public BigInteger? GetCrlNumber()
Returns
Type Description
Nullable<BigInteger>

GetDnsNames()

Declaration
public List<string> GetDnsNames()
Returns
Type Description
List<String>

GetExtendedKeyUsage()

Declaration
public ExtendedKeyUsage? GetExtendedKeyUsage()
Returns
Type Description
Nullable<ExtendedKeyUsage>

GetKeyUsage()

Declaration
public KeyUsage? GetKeyUsage()
Returns
Type Description
Nullable<KeyUsage>

GetQualifiedCertificateStatements()

Declaration
public QualifiedCertificateStatementsExtension GetQualifiedCertificateStatements()
Returns
Type Description
QualifiedCertificateStatementsExtension

GetRfc822Names()

Declaration
public List<string> GetRfc822Names()
Returns
Type Description
List<String>

GetSubjectKeyIdentifier()

Returns the bytes of the key identifier in the SubjectKeyIdentifier extension, or null if the extension is not present.

Declaration
public byte[] GetSubjectKeyIdentifier()
Returns
Type Description
Byte[]

TryGet(String, out X509Extension)

Declaration
public bool TryGet(string extensionId, out X509Extension extension)
Parameters
Type Name Description
String extensionId
X509Extension extension
Returns
Type Description
Boolean
Back to top Copyright © 2015-2020 Lacuna Software