aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-01-21 09:57:16 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-01-21 09:57:16 +0100
commit2436aa273f00dafb465c2342ea8e7297898915d2 (patch)
tree27cf115b4ec6d36f84b01b50acc403cf31b3ab6b /pdf-as-cli
parent8d801ab37834b0f11c6a16c240d77da71a6ab816 (diff)
downloadpdf-as-4-2436aa273f00dafb465c2342ea8e7297898915d2.tar.gz
pdf-as-4-2436aa273f00dafb465c2342ea8e7297898915d2.tar.bz2
pdf-as-4-2436aa273f00dafb465c2342ea8e7297898915d2.zip
Implementations for pdf-as-web and pdf-as-legacy
Diffstat (limited to 'pdf-as-cli')
-rw-r--r--pdf-as-cli/build.gradle7
-rw-r--r--pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java12
2 files changed, 10 insertions, 9 deletions
diff --git a/pdf-as-cli/build.gradle b/pdf-as-cli/build.gradle
index 2204f51f..79b00be4 100644
--- a/pdf-as-cli/build.gradle
+++ b/pdf-as-cli/build.gradle
@@ -4,12 +4,6 @@ apply plugin: 'application'
mainClassName = "at.gv.egiz.pdfas.cli.Main"
-jar {
- manifest {
- attributes 'Implementation-Title': 'PDF-AS CLI', 'Implementation-Version': version
- }
-}
-
repositories {
mavenLocal()
mavenCentral()
@@ -17,6 +11,7 @@ repositories {
dependencies {
compile project (':pdf-as-lib')
+ compile project (':pdf-as-legacy')
compile project (':stamper:stmp-itext')
compile project (':signature-standards:sigs-pkcs7detached')
compile project (':signature-standards:sigs-pades')
diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java
index 7b8d4a95..d99f7bd8 100644
--- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java
+++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java
@@ -34,10 +34,16 @@ public class DeveloperMain {
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));
- Configuration config = pdfas.getConfiguration();
+ System.out.println(PdfAsFactory.getVersion());
+ return;
+
+ /*Configuration config = pdfas.getConfiguration();
byte[] data;
try {
IPlainSigner signer = new PKCS7DetachedSigner(keyStoreFile, keyAlias, keyStorePass, keyPass, keyStoreType);
@@ -76,7 +82,7 @@ public class DeveloperMain {
} else {
throw new Exception("Invalid status");
}
- */
+ /
pdfas.sign(parameter);
FileOutputStream fos = new FileOutputStream("/home/afitzek/simple_signed.pdf");
fos.write(bads.getData());
@@ -93,7 +99,7 @@ public class DeveloperMain {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
- }
+ }*/
}
}