public class CreateSignedTimeStamp extends Object implements 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)
Creates a cms signature for the given content 
 | 
void | 
signDetached(File file)
Signs the given PDF file. 
 | 
void | 
signDetached(File inFile,
            File outFile)
Signs the given PDF file. 
 | 
void | 
signDetached(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(PDDocument document, OutputStream output) throws IOException
document - given Pdfoutput - Where the file will be writtenIOExceptionpublic byte[] sign(InputStream content) throws IOException
SignatureInterfacesign in interface SignatureInterfacecontent - is the content as a (Filter)InputStreamIOException - if something went wrongpublic static void main(String[] args) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.