Class PKCS1
Contents
[
Hide
]PKCS1 class
Represents signature object regarding PKCS#1 standard. RSA encryption algorithm and SHA-1 digest method are used for signing.
public sealed class PKCS1 : Signature
Constructors
| Name | Description |
|---|---|
| PKCS1() | Inititalizes new instance of the PKCS1 class. |
| PKCS1(Stream) | Initializes new instance of the PKCS1 class. |
| PKCS1(Stream, string) | Inititalizes new instance of the PKCS1 class. |
| PKCS1(string, string) | Inititalizes new instance of the PKCS1 class. |
Properties
| Name | Description |
|---|---|
| Authority { get; set; } | The name of the person or authority signing the document. |
| AvoidEstimatingSignatureLength { get; set; } | Gets and sets an option means whether to avoid estimating the length of a signature. |
| ByteRange { get; } | An array of pairs of integers (starting byte offset, length in bytes) that shall describe the exact byte range for the digest calculation. |
| ContactInfo { get; set; } | Information provided by the signer to enable a recipient to contact the signer to verify the signature, e.g. a phone number. |
| CustomAppearance { get; set; } | Gets/sets the custom appearance. |
| CustomSignHash { get; set; } | The delegate for custom sign the document hash. |
| Date { get; set; } | The time of signing. |
| DefaultSignatureLength { get; set; } | Gets or sets the default length for the signature data in bytes. |
| Location { get; set; } | The CPU host name or physical location of the signing. |
| OcspSettings { get; set; } | Gets/sets ocsp settings. |
| Reason { get; set; } | The reason for the signing, such as (I agree, Pip B.). |
| ShowProperties { get; set; } | Force to show/hide signature properties. In case ShowProperties is true signature field has predefined format of appearance (strings to represent): ——————————————- Digitally signed by {certificate subject} Date: {signature.Date} Reason: {signature.Reason} Location: {signature.Location} ——————————————- where {X} is placeholder for X value. Also signature can have image, in this case listed strings are placed over image. ShowProperties is true by default. |
| TimestampSettings { get; set; } | Gets/sets timestamp settings. |
| UseLtv { get; set; } | Gets/sets ltv validation flag. |
Methods
| Name | Description |
|---|---|
| GetSignatureAlgorithmInfo() | Retrieves information about the signature algorithm used in the signature. |
| Verify() | Verify the document regarding this signature and return true if document is valid or otherwise false. |
| Verify(ValidationOptions, out ValidationResult) | Verify the document regarding this signature and return true if document is valid or otherwise false. |
| Verify(X509Certificate2, ValidationOptions, out ValidationResult) | Verify the document regarding this signature and return true if document is valid or otherwise false. Verification is performed using the external public key certificate. |
See Also
- class Signature
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF