X509Extensions
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class
public class X509Extensions
Hierarquia: object → X509Extensions
Propriedades
this[string]
public X509Extension this[string oid] { get; }
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
oid | string |
Retorno
Métodos
CheckForUnprocessedCritical(IEnumerable<string>)
public void CheckForUnprocessedCritical(IEnumerable<string> processedExtensions)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
processedExtensions | IEnumerable<string> |
Contains(string)
public bool Contains(string extensionId)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
extensionId | string |
Retorno
Get(string, bool)
public X509Extension Get(string extensionId, bool throwOnNotFound = true)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
extensionId | string | |
throwOnNotFound | bool |
Retorno
GetAllExtensions()
public List<X509Extension> GetAllExtensions()
Retorno
GetAuthorityInformationAccess()
Returns an object that allows access to the fields of the AuthorityInformationAccess extension, or null if the extension is not present.
public AuthorityInformationAccess GetAuthorityInformationAccess()
Retorno
GetAuthorityKeyIdentifier()
Returns the bytes of the key identifier in the AuthorityKeyIdentifier extension, or null if the extension is not present.
public byte[] GetAuthorityKeyIdentifier()
Retorno
GetCertificatePolicies()
public List<CertificatePolicy> GetCertificatePolicies()
Retorno
GetCrlDistributionPoints()
Returns the distribution points in the CRLDistributionPoints extension, or null if the extension is not present.
public List<CrlDistributionPoint> GetCrlDistributionPoints()
Retorno
GetCrlNumber()
Returns the number in the CRLNumber extension, or null if the extension is not present.
public BigInteger? GetCrlNumber()
Retorno
GetDnsNames()
public List<string> GetDnsNames()
Retorno
GetExtendedKeyUsage()
public ExtendedKeyUsage? GetExtendedKeyUsage()
Retorno
ExtendedKeyUsage?
GetKeyUsage()
public KeyUsage? GetKeyUsage()
Retorno
KeyUsage?
GetQualifiedCertificateStatements()
public QualifiedCertificateStatementsExtension GetQualifiedCertificateStatements()
Retorno
QualifiedCertificateStatementsExtension
GetRfc822Names()
public List<string> GetRfc822Names()
Retorno
GetSubjectKeyIdentifier()
Returns the bytes of the key identifier in the SubjectKeyIdentifier extension, or null if the extension is not present.
public byte[] GetSubjectKeyIdentifier()
Retorno
TryGet(string, out X509Extension)
public bool TryGet(string extensionId, out X509Extension extension)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
extensionId | string | |
extension | X509Extension |
Retorno
Membros herdados
ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()