diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2015-02-25 12:50:41 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2015-02-25 12:50:41 +0100 |
commit | 23a283834becf8323489231ed5c48725f9716bb6 (patch) | |
tree | 9c5b4b099656dbdc77118c1b2fd5ab201f091f63 /pdf-as-lib | |
parent | de87f168478445ffb2b018804ea46a834dffcfbf (diff) | |
download | pdf-as-4-23a283834becf8323489231ed5c48725f9716bb6.tar.gz pdf-as-4-23a283834becf8323489231ed5c48725f9716bb6.tar.bz2 pdf-as-4-23a283834becf8323489231ed5c48725f9716bb6.zip |
fixed base64 image value
Diffstat (limited to 'pdf-as-lib')
-rw-r--r-- | pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/mains/B64ImageTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/mains/B64ImageTest.java b/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/mains/B64ImageTest.java new file mode 100644 index 00000000..7a0519fa --- /dev/null +++ b/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/mains/B64ImageTest.java @@ -0,0 +1,40 @@ +package at.gv.egiz.pdfas.lib.test.mains; + +import java.io.File; +import java.io.FileInputStream; + +import at.gv.egiz.pdfas.common.settings.ISettings; +import at.gv.egiz.pdfas.common.utils.StreamUtils; +import at.gv.egiz.pdfas.lib.api.ByteArrayDataSource; +import at.gv.egiz.pdfas.lib.api.Configuration; +import at.gv.egiz.pdfas.lib.api.PdfAs; +import at.gv.egiz.pdfas.lib.api.PdfAsFactory; +import at.gv.egiz.pdfas.lib.api.sign.IPlainSigner; +import at.gv.egiz.pdfas.lib.api.sign.SignParameter; + +public class B64ImageTest { + + public static final String keyStoreFile = "/home/afitzek/devel/pdfas_neu/test.p12"; + public static final String keyStoreType = "PKCS12"; + public static final String keyStorePass = "123456"; + //public static final String keyAlias = "pdf"; + public static final String keyAlias = "ecc_test"; + public static final String keyPass = "123456"; + + public static void main(String[] args) { + String user_home = System.getProperty("user.home"); + String pdfas_dir = user_home + File.separator + ".pdfas"; + PdfAs pdfas = PdfAsFactory.createPdfAs(new File(pdfas_dir)); + try { + Configuration config = pdfas.getConfiguration(); + ISettings settings = (ISettings) config; + + + } catch (Throwable e) { + e.printStackTrace(); + } finally { + + } + } + +} |