Class SignatureManager
- java.lang.Object
-
- com.ironsoftware.ironpdf.signature.SignatureManager
-
public class SignatureManager extends Object
Class used to add , edit and remove bookmarks from aPdfDocument
outline.Bookmarks are arranged and navigated in a parent/child node hierarchy, similar to an HTML DOM.
See:
PdfDocument.getBookmark()
See:
Bookmark
-
-
Constructor Summary
Constructors Constructor Description SignatureManager(InternalPdfDocument internalPdfDocument)
Please get BookmarkManager byPdfDocument.getBookmark()
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VerifiedSignature>
getVerifiedSignature()
Returns a list ofVerifiedSignature
.void
RemoveSignature()
void
SignPdfWithSignature(Signature signature)
Signs the PDF with digital signature with advanced options.void
SignPdfWithSignature(Signature signature, SignaturePermissions permissions)
Signs the PDF with digital signature with advanced options.boolean
VerifyPdfSignatures()
Verifies all the PDF signatures for this PDF document and returns true if there are no invalid signatures.
-
-
-
Constructor Detail
-
SignatureManager
public SignatureManager(InternalPdfDocument internalPdfDocument)
Please get BookmarkManager byPdfDocument.getBookmark()
instead.- Parameters:
internalPdfDocument
- the internal pdf document
-
-
Method Detail
-
getVerifiedSignature
public List<VerifiedSignature> getVerifiedSignature()
Returns a list ofVerifiedSignature
.- Returns:
- list of
VerifiedSignature
-
SignPdfWithSignature
public void SignPdfWithSignature(Signature signature)
Signs the PDF with digital signature with advanced options. Note that the PDF will not be fully signed until Saved usingPdfDocument.saveAs(Path)
" orPdfDocument.getBinaryData()
- Parameters:
signature
- the PdfSignature
-
SignPdfWithSignature
public void SignPdfWithSignature(Signature signature, SignaturePermissions permissions)
Signs the PDF with digital signature with advanced options. Note that the PDF will not be fully signed until Saved usingPdfDocument.saveAs(Path)
" orPdfDocument.getBinaryData()
- Parameters:
signature
- the PdfSignaturepermissions
- Permissions regarding modifications to the document after the digital signature is applied
-
VerifyPdfSignatures
public boolean VerifyPdfSignatures()
Verifies all the PDF signatures for this PDF document and returns true if there are no invalid signatures.- Returns:
- true if no digital signatures or all digital signatures are currently valid. Editing a PDF document in any way will invalidate signatures.
-
RemoveSignature
public void RemoveSignature()
-
-