Class CadesSignatureEditor
Class for editing a Cades Signature
Inheritance
CadesSignatureEditor
Assembly: Lacuna.Pki.dll
Syntax
public class CadesSignatureEditor
Properties
Signature
Declaration
public CadesSignature Signature { get; }
Property Value
Methods
AddArchiveTimestamp(CadesSignerInfo, ITimestampRequester, CadesPolicySpec)
Declaration
public void AddArchiveTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy)
Parameters
AddArchiveTimestamp(CadesSignerInfo, ITimestampRequester, CadesPolicySpec, IReferencedCrlStore)
Declaration
public void AddArchiveTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy, IReferencedCrlStore store)
Parameters
AddCadesCTimestamp(CadesSignerInfo, ITimestampRequester)
Declaration
public void AddCadesCTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester)
Parameters
AddCadesCTimestamp(CadesSignerInfo, ITimestampRequester, CadesPolicySpec)
Declaration
public void AddCadesCTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy)
Parameters
AddCadesCTimestamp(CadesSignerInfo, ITimestampRequester, CadesPolicySpec, IReferencedCrlStore)
Declaration
public void AddCadesCTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy, IReferencedCrlStore store)
Parameters
AddCertCrlTimestampReferences(CadesSignerInfo, ITimestampRequester)
Declaration
public void AddCertCrlTimestampReferences(CadesSignerInfo signerInfo, ITimestampRequester requester)
Parameters
AddCertCrlTimestampReferences(CadesSignerInfo, ITimestampRequester, CadesPolicySpec)
Declaration
public void AddCertCrlTimestampReferences(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy)
Parameters
AddCertificates(IEnumerable<PKCertificate>)
Declaration
public void AddCertificates(IEnumerable<PKCertificate> certificates)
Parameters
AddCrl(IEnumerable<Crl>)
Declaration
public void AddCrl(IEnumerable<Crl> crls)
Parameters
AddEncapsulatedContent(CadesSignature, Byte[], Boolean)
Declaration
public static byte[] AddEncapsulatedContent(CadesSignature signature, byte[] encapsulatedContent, bool bypassDigestVerifcation = false)
Parameters
Returns
AddEncapsulatedContent(Byte[])
Declaration
public void AddEncapsulatedContent(byte[] content)
Parameters
Type |
Name |
Description |
Byte[] |
content |
|
AddEncapsulatedContent(Stream)
Declaration
public void AddEncapsulatedContent(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
AddSignatureTimestamp(CadesSignerInfo, ITimestampRequester)
Declaration
public void AddSignatureTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester)
Parameters
AddSignatureTimestamp(CadesSignerInfo, ITimestampRequester, CadesPolicySpec)
Declaration
public void AddSignatureTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy)
Parameters
AddSignatureTimestamp(CadesSignerInfo, ITimestampRequester, CadesPolicySpec, IReferencedCrlStore)
Declaration
public void AddSignatureTimestamp(CadesSignerInfo signerInfo, ITimestampRequester requester, CadesPolicySpec policy, IReferencedCrlStore store)
Parameters
AdjustReferencesAndValues(CadesSignerInfo, CadesPolicySpec)
Declaration
public void AdjustReferencesAndValues(CadesSignerInfo signerInfo, CadesPolicySpec policy)
Parameters
AdjustReferencesAndValues(CadesSignerInfo, CadesPolicySpec, IReferencedCrlStore)
Declaration
public void AdjustReferencesAndValues(CadesSignerInfo signerInfo, CadesPolicySpec policy, IReferencedCrlStore store)
Parameters
GetSignature()
Declaration
public CadesSignature GetSignature()
Returns
GetSignature(Stream)
Declaration
public void GetSignature(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
GetSignatureEncoded()
Get the signature bytes with current editions applied
Declaration
public byte[] GetSignatureEncoded()
Returns
Type |
Description |
Byte[] |
Edited signature bytes
|
MergeSignatures(CadesSignature[])
Declaration
public static byte[] MergeSignatures(params CadesSignature[] signatures)
Parameters
Returns
MergeSignatures(IEnumerable<CadesSignature>)
Declaration
public static byte[] MergeSignatures(IEnumerable<CadesSignature> signatures)
Parameters
Returns
MergeSignatures(IEnumerable<CadesSignature>, Byte[])
Declaration
public static byte[] MergeSignatures(IEnumerable<CadesSignature> signatures, byte[] encapsulatedContent)
Parameters
Returns
Open(CadesSignature)
Declaration
public static CadesSignatureEditor Open(CadesSignature signature)
Parameters
Returns
Open(Byte[])
Declaration
public static CadesSignatureEditor Open(byte[] content)
Parameters
Type |
Name |
Description |
Byte[] |
content |
|
Returns
Open(Stream)
Declaration
public static CadesSignatureEditor Open(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
Open(String)
Declaration
public static CadesSignatureEditor Open(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
RemoveAllRevocationValues()
Declaration
public List<Crl> RemoveAllRevocationValues()
Returns
RemoveCertificates()
Declaration
public List<PKCertificate> RemoveCertificates()
Returns
RemoveCrls()
Declaration
public List<Crl> RemoveCrls()
Returns
RemoveEncapsulatedContent()
Declaration
public byte[] RemoveEncapsulatedContent()
Returns
RemoveRevocationValues(CadesSignerInfo)
Declaration
public List<Crl> RemoveRevocationValues(CadesSignerInfo signer)
Parameters
Returns
SplitSignature(CadesSignature)
Splits the signature into signatures for each signer-info.
Declaration
public static Dictionary<CadesSignerInfo, byte[]> SplitSignature(CadesSignature signature)
Parameters
Returns
SplitSignature(Byte[])
Splits the signature into signatures for each signer-info.
Declaration
public static Dictionary<CadesSignerInfo, byte[]> SplitSignature(byte[] signatureContent)
Parameters
Type |
Name |
Description |
Byte[] |
signatureContent |
|
Returns
UpdateReferencesAndValues(CadesSignerInfo, ValidationResults, DigestAlgorithm)
Declaration
public void UpdateReferencesAndValues(CadesSignerInfo signerInfo, ValidationResults validationResults, DigestAlgorithm digestAlgorithm)
Parameters
UpdateReferencesAndValues(CadesSignerInfo, IEnumerable<Certificate>, IEnumerable<UsedRevocationValues>, DigestAlgorithm)
Declaration
public void UpdateReferencesAndValues(CadesSignerInfo signerInfo, IEnumerable<Certificate> caCertificates, IEnumerable<UsedRevocationValues> revocationValues, DigestAlgorithm digestAlgorithm)
Parameters