PKCS1

Overview

PKCS1 is a class in Aspose.PDF FOSS for .NET. Inherits from: Signature.

This class provides 7 methods for working with PKCS1 objects in .NET programs. Available methods include: GetSignatureAlgorithmInfo, PKCS1, Signature, Verify. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Authority, AvoidEstimatingSignatureLength, ByteRange, ContactInfo, CustomAppearance, CustomSignHash, and 8 more.

Properties

NameTypeAccessDescription
AuthoritystringRead/WriteGets or sets the authority.
ContactInfostringRead/WriteGets or sets the contact info.
LocationstringRead/WriteGets or sets the location.
ReasonstringRead/WriteGets or sets the reason.
DateDateTimeRead/WriteGets or sets the date.
ByteRangeint[]ReadThe signature’s /ByteRange entry as int[].
TimestampSettingsAspose.Pdf.TimestampSettingsRead/WriteRFC 3161 TSA settings; honoured by the signer when set.
OcspSettingsAspose.Pdf.OcspSettingsRead/WriteOCSP / revocation-check settings; honoured by the signer when set.
CustomAppearanceSignatureCustomAppearance?Read/WriteVisual-appearance knobs honoured by SignWithAppearance when the signature is signed via a visible-rect overload.
CustomSignHashSignHash?Read/WriteOptional external-signer callback.
UseLtvboolRead/WriteGets or sets the use ltv.
AvoidEstimatingSignatureLengthboolRead/WriteWhen true, the signer skips the byte-range estimation pass and uses DefaultSignatureLength directly when reserving space for the PKCS#7 /Contents hex string.
DefaultSignatureLengthintRead/WriteNumber of bytes reserved for the PKCS#7 /Contents hex string.
ShowPropertiesboolRead/WriteWhen true, the visible signature appearance includes the signer’s Reason/Location/ContactInfo as text.

Methods

SignatureDescription
PKCS1()Calls PKCS1 on this PKCS1 instance.
PKCS1(pfx: string, password: string)
PKCS1(pfx: Stream, password: string)
PKCS1(image: Stream)Construct a PKCS#1 signature configuration whose visible signature renders image as the appearance graphic.
Signature()Calls Signature on this PKCS1 instance.
Verify()Verify the loaded signature’s PKCS#7 against the original PDF bytes — returns true when the signature decodes and validates.
GetSignatureAlgorithmInfo()Parse the PKCS#7 envelope (when loaded from an existing signature) to report the signing-algorithm / digest-algorithm / cryptographic-standard triple.

See Also