keytool -genkeypair -storepass 123456 -storetype pkcs12 -alias test -validity 365
-v -keyalg RSA -keystore keystore.p12
| Access | Constructor and Description |
|---|---|
| public | CreateSignature(KeyStore
the pkcs12 keystore containing the signing certificate keystore, char[] the password for recovering the key pin)Initialize the signature creator with a keystore and certificate password. |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public void | |
| public void | |
| public void | signDetached(File
input PDF file inFile, File output PDF file outFile, String optional TSA url tsaUrl)Signs the given PDF file. |
| public void | |
| private static void |
| CreateSignature | back to summary |
|---|---|
| public CreateSignature(KeyStore keystore, char[] pin) throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, CertificateException, IOException Initialize the signature creator with a keystore and certificate password.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException, GeneralSecurityException | |
| signDetached | back to summary |
|---|---|
| public void signDetached(File file) throws IOException Signs the given PDF file. Alters the original file on disk.
| |
| signDetached | back to summary |
|---|---|
| public void signDetached(File inFile, File outFile) throws IOException Signs the given PDF file.
| |
| signDetached | back to summary |
|---|---|
| public void signDetached(File inFile, File outFile, String tsaUrl) throws IOException Signs the given PDF file.
| |
| signDetached | back to summary |
|---|---|
| public void signDetached(PDDocument document, OutputStream output) throws IOException | |
| usage | back to summary |
|---|---|
| private static void usage() | |