Class PadesSignature
Class for viewing PAdES signature elements
Inheritance
PadesSignature
Assembly: Lacuna.Pki.dll
Syntax
public class PadesSignature
Properties
Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
PagesCount
Declaration
public int PagesCount { get; }
Property Value
PdfAStandard
The PDF/A standard, part and conformance level, of the document. Null if not a PDF/A document.
Note: This value is recovered from PDF/A-specific metadata, which represents a claim of conformance, not assurance of full PDF/A standard conformance.
Declaration
public PdfAStandards? PdfAStandard { get; }
Property Value
PdfVersion
PDF format version. Null if it is an invalid or unknown PDF version.
Declaration
public Version PdfVersion { get; }
Property Value
Signers
Declaration
public List<PadesSignerInfo> Signers { get; }
Property Value
Methods
GetBlankSignatureNames()
Declaration
public List<string> GetBlankSignatureNames()
Returns
GetDss(String)
Gets a DSS (Document Security Store) dictionary for a signature or for all PAdES signatures context
Declaration
public Dss GetDss(string signaturefieldName = null)
Parameters
Type |
Name |
Description |
String |
signaturefieldName |
A specific DSS protected by signature or by all signatures context case no field name passed
|
Returns
GetRangeBytes(String)
Declaration
public byte[] GetRangeBytes(string signaturefieldName)
Parameters
Type |
Name |
Description |
String |
signaturefieldName |
|
Returns
HasSignatureField(String)
Declaration
public bool HasSignatureField(string signatureFieldName)
Parameters
Type |
Name |
Description |
String |
signatureFieldName |
|
Returns
Open(Byte[])
Declaration
public static PadesSignature Open(byte[] content)
Parameters
Type |
Name |
Description |
Byte[] |
content |
PAdES signature content bytes
|
Returns
Open(Stream)
Declaration
public static PadesSignature Open(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
Open(String)
Declaration
public static PadesSignature Open(string path)
Parameters
Type |
Name |
Description |
String |
path |
PAdES signature file path
|
Returns
ValidateAllSignatures(IPadesPolicyMapper)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(IPadesPolicyMapper policyMapper)
Parameters
Returns
ValidateAllSignatures(IPadesPolicyMapper, ValidationContext)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(IPadesPolicyMapper policyMapper, ValidationContext validationContext)
Parameters
Returns
ValidateAllSignatures(IPadesPolicyMapper, Nullable<DateTimeOffset>)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(IPadesPolicyMapper policyMapper, DateTimeOffset? dateReference)
Parameters
Returns
ValidateAllSignatures(IPadesPolicyMapperBySignerInfo)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(IPadesPolicyMapperBySignerInfo policy)
Parameters
Returns
ValidateAllSignatures(IPadesPolicyMapperBySignerInfo, ValidationContext)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(IPadesPolicyMapperBySignerInfo policy, ValidationContext validationContext)
Parameters
Returns
ValidateAllSignatures(IPadesPolicyMapperBySignerInfo, Nullable<DateTimeOffset>)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(IPadesPolicyMapperBySignerInfo policy, DateTimeOffset? dateReference)
Parameters
Returns
ValidateAllSignatures(PadesPolicySpec)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(PadesPolicySpec policy)
Parameters
Returns
ValidateAllSignatures(PadesPolicySpec, ValidationContext)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(PadesPolicySpec policy, ValidationContext validationContext)
Parameters
Returns
ValidateAllSignatures(PadesPolicySpec, Nullable<DateTimeOffset>)
Declaration
public Dictionary<PadesSignerInfo, ValidationResults> ValidateAllSignatures(PadesPolicySpec policy, DateTimeOffset? dateReference)
Parameters
Returns
ValidateSignature(PadesSignerInfo, IPadesPolicyMapper)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, IPadesPolicyMapper policyMapper)
Parameters
Returns
ValidateSignature(PadesSignerInfo, IPadesPolicyMapper, ValidationContext)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, IPadesPolicyMapper policyMapper, ValidationContext validationContext)
Parameters
Returns
ValidateSignature(PadesSignerInfo, IPadesPolicyMapper, Nullable<DateTimeOffset>)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, IPadesPolicyMapper policyMapper, DateTimeOffset? dateReference)
Parameters
Returns
ValidateSignature(PadesSignerInfo, IPadesPolicyMapperBySignerInfo)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, IPadesPolicyMapperBySignerInfo policyMapper)
Parameters
Returns
ValidateSignature(PadesSignerInfo, IPadesPolicyMapperBySignerInfo, ValidationContext)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, IPadesPolicyMapperBySignerInfo policyMapper, ValidationContext validationContext)
Parameters
Returns
ValidateSignature(PadesSignerInfo, IPadesPolicyMapperBySignerInfo, Nullable<DateTimeOffset>)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, IPadesPolicyMapperBySignerInfo policyMapper, DateTimeOffset? dateReference)
Parameters
Returns
ValidateSignature(PadesSignerInfo, PadesPolicySpec)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, PadesPolicySpec policy)
Parameters
Returns
ValidateSignature(PadesSignerInfo, PadesPolicySpec, ValidationContext)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, PadesPolicySpec policy, ValidationContext validationContext)
Parameters
Returns
ValidateSignature(PadesSignerInfo, PadesPolicySpec, Nullable<DateTimeOffset>)
Declaration
public ValidationResults ValidateSignature(PadesSignerInfo signerInfo, PadesPolicySpec policy, DateTimeOffset? dateReference)
Parameters
Returns