Class SignatureManager
- java.lang.Object
-
- com.ironsoftware.ironpdf.signature.SignatureManager
-
public class SignatureManager extends Object
Class used to sign , get and signature from aPdfDocument
.See:
PdfDocument.getSignature()
See:
Signature
-
-
Constructor Summary
Constructors Constructor Description SignatureManager(InternalPdfDocument internalPdfDocument)
Please get SignatureManager byPdfDocument.getSignature()
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VerifiedSignature>
getVerifiedSignature()
Returns a list ofVerifiedSignature
.void
RemoveSignature()
Removes all signature from the PDF document.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 SignatureManager byPdfDocument.getSignature()
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()
Removes all signature from the PDF document.
-
-