Click or drag to resize

PdfSecurityManager Class

The PDF security manager allows you to set the security options you want to apply to the PDF document. The security options can be specified in the constructor as a PdfSecurityOptions object
Inheritance Hierarchy
SystemObject
  ExpertPdf.PDFSecurityPdfSecurityManager

Namespace: ExpertPdf.PDFSecurity
Assembly: epsecurepdf (in epsecurepdf.dll) Version: 10.0
Syntax
public class PdfSecurityManager

The PdfSecurityManager type exposes the following members.

Constructors
 NameDescription
Public methodPdfSecurityManager Constructs a security manager with the default security options.
Public methodPdfSecurityManager(PdfSecurityOptions) Constructs a PDF security manager with the specified security options object
Top
Properties
 NameDescription
Public propertyCertificationLevel Gets or sets the certification level of the signatures made by the Sign methods. The default is None: an ordinary approval signature. Any other value makes a certification (author) signature that also states the changes allowed after it: none, form filling and signing, or form filling, signing and annotations.
Public propertyLicenseKey Gets or sets the license key
Public propertySourcePdfPassword Gets or sets the password that opens a password-protected source document when signing or when validating its signatures (its user or owner password).
Top
Methods
 NameDescription
Public methodAddSignatureField(Byte, String, Int32, RectangleF) Adds an empty signature field to a PDF document given as an array of bytes, to be signed later with the Sign methods: a Sign call with the same signature name signs this field, at its position.
Public methodAddSignatureField(String, String, String, Int32, RectangleF) Adds an empty signature field to a PDF document, to be signed later with the Sign methods: a Sign call with the same signature name signs this field, at its position. Add the fields of the later signers before certifying a document: a certification allows signing the existing fields, not adding new ones.
Public methodGetSecuredPdfBytes(Byte) Apply the security settings to the source PDF document and return the PDF document with security options applied
Public methodGetSecuredPdfBytes(String) Apply the security settings to the source PDF document and return the PDF document with security options applied
Public methodGetSecurityInfo(Byte) Gets the security settings of a PDF document given as an array of bytes, without changing it.
Public methodGetSecurityInfo(String) Gets the security settings of a PDF document without changing it: encryption algorithm, key size and revision, the permissions, whether a user or owner password is needed, and its signatures.
Public methodGetSecurityInfo(Byte, String) Gets the security settings of a password protected PDF document given as an array of bytes, without changing it.
Public methodGetSecurityInfo(Stream, String) Gets the security settings of a PDF document read from a stream, without changing it.
Public methodGetSecurityInfo(String, String) Gets the security settings of a password protected PDF document without changing it: encryption algorithm, key size and revision, the permissions, whether a user or owner password is needed, and its signatures.
Public methodGetUnSecuredPdfBytes(Byte, String) Remove all the security settings from source PDF document and return the PDF document with security options removed
Public methodGetUnSecuredPdfBytes(String, String) Remove all the security settings from source PDF document and return the PDF document with security options removed
Public methodSaveSecuredPdfToFile(Byte, String) Apply the security settings to the source PDF document and saves the PDF document in the specified destination file
Public methodSaveSecuredPdfToFile(String, String) Apply the security settings to the source PDF document and saves the PDF document in the specified destination file
Public methodSaveUnSecuredPdfToFile(Byte, String, String) Remove all the security settings from source PDF document and return the PDF document with security options removed
Public methodSaveUnSecuredPdfToFile(String, String, String) Remove all the security settings from source PDF document and return the PDF document with security options removed
Public methodSign(Byte, String, String, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Sign the pdf document given as an array of bytes with the specified certificate.
Public methodSign(Stream, Stream, String, String, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Sign the pdf document read from a stream with the specified certificate and write the signed document to another stream.
Public methodSign(String, String, String, String, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Sign the pdf document with the specified certificate.
Public methodValidateSignatures(Byte) Checks the signatures of a PDF document given as an array of bytes.
Public methodValidateSignatures(String) Checks the signatures of a PDF document: for each signature the signer, the signing time, whether the document was changed after signing, the validity and trust of the signing certificate, the time stamp and the overall status. The revocation status is not checked online (see ValidateSignatures(String, SignatureValidationOptions)).
Public methodValidateSignatures(Byte, SignatureValidationOptions) Checks the signatures of a PDF document given as an array of bytes, with the specified options.
Public methodValidateSignatures(Stream, SignatureValidationOptions) Checks the signatures of a PDF document read from a stream, with the specified options.
Public methodValidateSignatures(String, SignatureValidationOptions) Checks the signatures of a PDF document with the specified options (online revocation check, additional trusted root certificates).
Top
See Also