Click or drag to resize

PdfSecurityManager Methods

The PdfSecurityManager type exposes the following members.

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 methodStatic memberCompleteExternalSignature(Byte, String, String, IListByte, SignatureDigest, Byte) Writes the signature value into a prepared document held in memory and returns the signed document.
Public methodStatic memberCompleteExternalSignature(String, String, String, IListByte, SignatureDigest, Byte) Writes the signature value into a document prepared with PrepareExternalSignature and saves the signed document.
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 methodPrepareExternalSignature(Stream, Stream, IListByte, String, String, String, String, Int32, RectangleF) Prepares a PDF document read from a stream for a signature produced later, and writes the prepared document to another stream.
Public methodPrepareExternalSignature(String, String, IListByte, String, String, String, String, Int32, RectangleF) Prepares a PDF document for a signature produced later, outside this call: the document is given a signature field with an empty, reserved signature and written to preparedPdf, and the request to be signed is returned.
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, IExternalSigner, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Signs the PDF document given as an array of bytes with an external signer.
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, IExternalSigner, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Signs the PDF document read from a stream with an external signer and writes the signed document to another stream.
Public methodSign(String, String, IExternalSigner, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Signs the PDF document with an external signer - a key held in a hardware security module, a smart card, a USB token or a key service.
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