DigitalSignatureUtil Methods

Methods
  NameDescription
Public methodStatic memberCode exampleLoadSignatures(Stream)
Loads digital signatures from document using stream.
Public methodStatic memberCode exampleLoadSignatures(String)
Loads digital signatures from document.
Public methodStatic memberCode exampleRemoveAllSignatures(Stream, Stream)
Removes all digital signatures from document in source stream and writes unsigned document to destination stream.

Output will be written to the start of stream and stream size will be updated with content length.

Public methodStatic memberCode exampleRemoveAllSignatures(String, String)
Removes all digital signatures from source file and writes unsigned file to destination file.
Public methodStatic memberCode exampleSign(Stream, Stream, CertificateHolder)
Signs source document using given CertificateHolder with digital signature and writes signed document to destination stream.

Document should be either Doc or Docx.

Output will be written to the start of stream and stream size will be updated with content length.

Public methodStatic memberCode exampleSign(String, String, CertificateHolder)
Signs source document using given CertificateHolder with digital signature and writes signed document to destination file.

Document should be either Doc or Docx.

Public methodStatic memberCode exampleSign(Stream, Stream, CertificateHolder, SignOptions)
Signs source document using given CertificateHolder and SignOptions with digital signature and writes signed document to destination stream.

Document should be either Doc or Docx.

Output will be written to the start of stream and stream size will be updated with content length.

Public methodStatic memberCode exampleSign(String, String, CertificateHolder, SignOptions)
Signs source document using given CertificateHolder and SignOptions with digital signature and writes signed document to destination file.

Document should be either Doc or Docx.

See Also