Class AttributeCertificateGenerator
Inheritance
AttributeCertificateGenerator
Assembly: Lacuna.Pki.dll
Syntax
public class AttributeCertificateGenerator
Constructors
AttributeCertificateGenerator()
Declaration
public AttributeCertificateGenerator()
Properties
IncludeAuthorityKeyIdExtension
Declaration
public bool IncludeAuthorityKeyIdExtension { get; set; }
Property Value
Warnings
Declaration
public List<string> Warnings { get; }
Property Value
Methods
AddAttribute<T>(String, T)
Declaration
public void AddAttribute<T>(string oid, T value)
Parameters
Type |
Name |
Description |
String |
oid |
|
T |
value |
|
Type Parameters
AddAttribute<T>(String, IEnumerable<T>)
Declaration
public void AddAttribute<T>(string oid, IEnumerable<T> values)
Parameters
Type Parameters
AddRawAttribute(String, Byte[])
Declaration
public void AddRawAttribute(string oid, byte[] encodedValue)
Parameters
Type |
Name |
Description |
String |
oid |
|
Byte[] |
encodedValue |
|
AddRawAttribute(String, IEnumerable<Byte[]>)
Declaration
public void AddRawAttribute(string oid, IEnumerable<byte[]> encodedValues)
Parameters
Generate(Boolean)
Declaration
public AttributeCertificate Generate(bool validate = true)
Parameters
Type |
Name |
Description |
Boolean |
validate |
|
Returns
GenerateToSignBytes()
Declaration
public byte[] GenerateToSignBytes()
Returns
GenerateUniqueSerialNumber()
Declaration
public BigInteger GenerateUniqueSerialNumber()
Returns
SetCAIssuersUri(Uri)
Declaration
public void SetCAIssuersUri(Uri caIssuersUri)
Parameters
Type |
Name |
Description |
Uri |
caIssuersUri |
|
SetCrlDistributionPoint(Uri)
Declaration
public void SetCrlDistributionPoint(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
SetExtensionNoRevocationAvailable()
Declaration
public void SetExtensionNoRevocationAvailable()
SetHolderName(Name)
Declaration
public void SetHolderName(Name name)
Parameters
Type |
Name |
Description |
Name |
name |
|
SetHolderPKCertificate(PKCertificate)
Declaration
public void SetHolderPKCertificate(PKCertificate holderCertificate)
Parameters
SetIssuer(PKCertificate)
Declaration
public void SetIssuer(PKCertificate issuer)
Parameters
SetIssuer(PKCertificateWithKey)
Declaration
public void SetIssuer(PKCertificateWithKey issuerWithKey)
Parameters
SetOcspUri(Uri)
Declaration
public void SetOcspUri(Uri ocspUri)
Parameters
Type |
Name |
Description |
Uri |
ocspUri |
|
SetPrecomputedSignature(Byte[], Byte[])
Declaration
public void SetPrecomputedSignature(byte[] signature, byte[] toSignBytes)
Parameters
Type |
Name |
Description |
Byte[] |
signature |
|
Byte[] |
toSignBytes |
|
SetSerialNumber(BigInteger)
Declaration
public void SetSerialNumber(BigInteger serialNumber)
Parameters
SetSignatureAlgorithm(SignatureAlgorithm)
Declaration
public void SetSignatureAlgorithm(SignatureAlgorithm signatureAlg)
Parameters
SetValidity(DateTimeOffset, DateTimeOffset)
Declaration
public void SetValidity(DateTimeOffset start, DateTimeOffset end)
Parameters
SetValidityFromNow(TimeSpan)
Declaration
public void SetValidityFromNow(TimeSpan period)
Parameters