public class CreateSignedTimeStamp extends Object implements org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
| Constructor and Description |
|---|
CreateSignedTimeStamp(String tsaUrl)
Initialize the signed timestamp creator
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
byte[] |
sign(InputStream content) |
void |
signDetached(File file)
Signs the given PDF file.
|
void |
signDetached(File inFile,
File outFile)
Signs the given PDF file.
|
void |
signDetached(org.apache.pdfbox.pdmodel.PDDocument document,
OutputStream output)
Prepares the TimeStamp-Signature and starts the saving-process.
|
public CreateSignedTimeStamp(String tsaUrl)
tsaUrl - The url where TS-Request will be done.public void signDetached(File file) throws IOException
file - the PDF file to signIOException - if the file could not be read or writtenpublic void signDetached(File inFile, File outFile) throws IOException
inFile - input PDF fileoutFile - output PDF fileIOException - if the input file could not be readpublic void signDetached(org.apache.pdfbox.pdmodel.PDDocument document,
OutputStream output)
throws IOException
document - given Pdfoutput - Where the file will be writtenIOExceptionpublic byte[] sign(InputStream content) throws IOException
sign in interface org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterfaceIOExceptionpublic static void main(String[] args) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.