| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private PDDocument | |
| private PDSignature | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | embedNewSignatureIntoDocument(byte[]
byte array of the document docBytes, OutputStream target, where the file will be written output)Embeds the new signature into the document, by copying the rest of the document |
| public void | embedTimeStamp(File
the PDF file to sign and to overwrite file)Embeds the given PDF file with signed timestamp(s). |
| public void | embedTimeStamp(File
The pdf file possibly containing signatures inFile, File Where the changed document will be saved outFile)Embeds signed timestamp(s) into existing signatures of the given document |
| public static void | |
| private void | processRelevantSignatures(byte[]
byte[] of the input file documentBytes)Create changed Signature with embedded TimeStamp from TSA |
| private void | processTimeStamping(File
The existing PDF file inFile, File Where the new file will be written to outFile)Processes the time-stamping of the signature. |
| private static void |
| changedEncodedSignature | back to summary |
|---|---|
| private byte[] changedEncodedSignature | |
| document | back to summary |
|---|---|
| private PDDocument document | |
| signature | back to summary |
|---|---|
| private PDSignature signature | |
| tsaUrl | back to summary |
|---|---|
| private final String tsaUrl | |
| CreateEmbeddedTimeStamp | back to summary |
|---|---|
| public CreateEmbeddedTimeStamp(String tsaUrl) | |
| embedNewSignatureIntoDocument | back to summary |
|---|---|
| private void embedNewSignatureIntoDocument(byte[] docBytes, OutputStream output) throws IOException Embeds the new signature into the document, by copying the rest of the document
| |
| embedTimeStamp | back to summary |
|---|---|
| public void embedTimeStamp(File file) throws IOException, URISyntaxException Embeds the given PDF file with signed timestamp(s). Alters the original file on disk.
| |
| embedTimeStamp | back to summary |
|---|---|
| public void embedTimeStamp(File inFile, File outFile) throws IOException, URISyntaxException Embeds signed timestamp(s) into existing signatures of the given document | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException, URISyntaxException | |
| processRelevantSignatures | back to summary |
|---|---|
| private void processRelevantSignatures(byte[] documentBytes) throws IOException, CMSException, NoSuchAlgorithmException, URISyntaxException Create changed Signature with embedded TimeStamp from TSA
| |
| processTimeStamping | back to summary |
|---|---|
| private void processTimeStamping(File inFile, File outFile) throws IOException, URISyntaxException Processes the time-stamping of the signature. | |
| usage | back to summary |
|---|---|
| private static void usage() | |