Package com.pdftools.sign
Class PreparedDocument
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.pdf.Document
-
- com.pdftools.sign.PreparedDocument
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class PreparedDocument extends Document
A document that has been prepared for signing
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getHash(HashAlgorithm algorithm)
Calculate the hash value-
Methods inherited from class com.pdftools.pdf.Document
close, getConformance, getIsLinearized, getIsSigned, getMetadata, getPageCount, getPermissions, getSignatureFields, getXfa, open, open
-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getHash
public byte[] getHash(HashAlgorithm algorithm)
Calculate the hash value
Calculate the hash value to create the signature from.- Parameters:
algorithm
- The hash algorithm- Returns:
- Throws:
java.lang.IllegalArgumentException
- ifalgorithm
isnull
-
-