Class SignerSpecs.AttributeGenerationSpec
Inherited Members
Namespace: Lacuna.Pki.Pades
Assembly: Lacuna.Pki.dll
Syntax
public class AttributeGenerationSpec
Constructors
AttributeGenerationSpec()
Declaration
public AttributeGenerationSpec()
Properties
CmsSignatureTimestamp
Denotes whether a signature-timestamp attribute MUST be added (failure throws exception), or SHOULD be added (failure generates a warning) or SHOULD NOT be added.
Declaration
public GenerationRequirementLevels CmsSignatureTimestamp { get; set; }
Property Value
Type | Description |
---|---|
GenerationRequirementLevels |
EnableLtv
Whether or not to create the signature with Long Term Validation elements. Default is true
Declaration
public bool EnableLtv { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
If you intend to create a document timestamp extending the life-time protection of the PDF, it is not recommended to enable this in the PadesSigner usage moment but in the PadesTimestamper usage.
Filter
The preferred signature handler to use when validating this signature. If not set, the default is AdobePPKLite filter.
Declaration
public PadesFilters Filter { get; set; }
Property Value
Type | Description |
---|---|
PadesFilters |
IncludeCmsSigningCertificateAttribute
Whether or not to include the signing-certificate attribute (or signing-certificate-v2, depending on the digest algorithm being used).
Declaration
public bool IncludeCmsSigningCertificateAttribute { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Please note that the signing certificate attribute is mandated by CAdES. A signature without a signing certificate attribute cannot truly be considered a CAdES signature and is subject to known attacks (signer substitution attack). The default value for this property is true on all policies returned by the SDK. We highly recommend that you do not set this property to false.
IncludeSignaturePolicyIdentifier
Wheter or not to include the signature-policy-identifier signed attribute (CAdES-BES vs CADES-EPES)
Declaration
public bool IncludeSignaturePolicyIdentifier { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IncludeSigningDateM
Whether or not to include the signing time date M in the PDF signature. This signing time is not a trusted time and should not be used if your internal Cades signatures already has a trusted signing time value. Default is true
Declaration
public bool IncludeSigningDateM { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SignaturePolicyQualifiers
In case IncludeSignaturePolicyIdentifier is set to true, denotes which signature policy qualifiers should be included in the signature-policy-identifier attribute. Currently, only the Uri qualifier is supported.
Declaration
public CadesPolicySpec.SignaturePolicyQualifiers SignaturePolicyQualifiers { get; set; }
Property Value
Type | Description |
---|---|
CadesPolicySpec.SignaturePolicyQualifiers |
SubFilter
The preferred signature validation plugin to be used in PDF readers. If note set, default is none.
Declaration
public PadesSubFilters SubFilter { get; set; }
Property Value
Type | Description |
---|---|
PadesSubFilters |