Class X509ExtensionsGenerator
Inheritance
X509ExtensionsGenerator
Assembly: Lacuna.Pki.dll
Syntax
public class X509ExtensionsGenerator
Constructors
X509ExtensionsGenerator()
Declaration
public X509ExtensionsGenerator()
Methods
AddAuthorityInfoAccess(IEnumerable<AuthorityInfoAccessEntry>, Boolean)
Declaration
public void AddAuthorityInfoAccess(IEnumerable<AuthorityInfoAccessEntry> authorityInfoAccessEntries, bool isCritical = false)
Parameters
AddAuthorityKeyIdentifier(PublicKey, Boolean)
Declaration
public void AddAuthorityKeyIdentifier(PublicKey authorityPublicKey, bool isCritical = false)
Parameters
AddAuthorityKeyIdentifier(Byte[], Boolean)
Declaration
public void AddAuthorityKeyIdentifier(byte[] authorityKeyId, bool isCritical = false)
Parameters
Type |
Name |
Description |
Byte[] |
authorityKeyId |
|
Boolean |
isCritical |
|
AddCertificatePolicies(IEnumerable<CertificatePolicyEntry>, Boolean)
Declaration
public void AddCertificatePolicies(IEnumerable<CertificatePolicyEntry> policies, bool isCritical = false)
Parameters
AddCrlDistributionPoints(IEnumerable<Uri>, Boolean)
Declaration
public void AddCrlDistributionPoints(IEnumerable<Uri> crlUris, bool isCritical = false)
Parameters
AddCrlDistributionPoints(Uri, Boolean)
Declaration
public void AddCrlDistributionPoints(Uri crlUri, bool isCritical = false)
Parameters
Type |
Name |
Description |
Uri |
crlUri |
|
Boolean |
isCritical |
|
AddCustomExtension<T>(String, T, Boolean)
Adds a custom X509 Extension with a value to be encoded as DER and wrapped in the extension's OCTETSTRING
Declaration
public void AddCustomExtension<T>(string oid, T value, bool isCritical = false)
Parameters
Type |
Name |
Description |
String |
oid |
|
T |
value |
Value to be DER encoded and wrapped
|
Boolean |
isCritical |
|
Type Parameters
AddExtendedKeyUsage(ExtendedKeyUsage, Boolean)
Declaration
public void AddExtendedKeyUsage(ExtendedKeyUsage extendedKeyUsage, bool isCritical = false)
Parameters
AddIssuingDistributionPoint(Uri, DistributionPointConstraints, Boolean, IEnumerable<RevocationReasons>, Boolean)
Declaration
public void AddIssuingDistributionPoint(Uri uri, DistributionPointConstraints dpConstraint, bool isIndirectCrl = false, IEnumerable<RevocationReasons> onlyReasons = null, bool isCritical = false)
Parameters
AddKeyUsage(KeyUsage, Boolean)
Declaration
public void AddKeyUsage(KeyUsage keyUsage, bool isCritical = false)
Parameters
AddRawCustomExtension(String, Byte[], Boolean)
Adds a custom X509 Extension with a DER encoded value to be wrapped in the extension's OCTETSTRING
Declaration
public void AddRawCustomExtension(string oid, byte[] encodedValue, bool isCritical = false)
Parameters
Type |
Name |
Description |
String |
oid |
|
Byte[] |
encodedValue |
DER encoded value to be wrapped
|
Boolean |
isCritical |
|
AddSubjectKeyIdentifier(PublicKey, Boolean)
Declaration
public void AddSubjectKeyIdentifier(PublicKey subjectPublicKey, bool isCritical = false)
Parameters
AddSubjectKeyIdentifier(Byte[], Boolean)
Declaration
public void AddSubjectKeyIdentifier(byte[] subjectKeyId, bool isCritical = false)
Parameters
Type |
Name |
Description |
Byte[] |
subjectKeyId |
|
Boolean |
isCritical |
|
Generate()
Declaration
public X509Extensions Generate()
Returns