aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-10-02 11:29:09 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-10-02 11:29:09 +0200
commit4e14449c2d0097e421bedc5f01647c8b09f1c49c (patch)
tree7df86ffc2a166d7ff3460d6807d8e345f0576978 /pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper
parent1483d928d358f1073e58510f3e12b1cf4984f269 (diff)
downloadpdf-as-4-4e14449c2d0097e421bedc5f01647c8b09f1c49c.tar.gz
pdf-as-4-4e14449c2d0097e421bedc5f01647c8b09f1c49c.tar.bz2
pdf-as-4-4e14449c2d0097e421bedc5f01647c8b09f1c49c.zip
Initial legacy API checkin
Diffstat (limited to 'pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper')
-rw-r--r--pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java138
-rw-r--r--pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/package-info.java8
2 files changed, 146 insertions, 0 deletions
diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
new file mode 100644
index 00000000..6606ec4a
--- /dev/null
+++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
@@ -0,0 +1,138 @@
+package at.gv.egiz.pdfas.wrapper;
+
+import java.io.File;
+import java.util.List;
+
+import com.sun.org.apache.xml.internal.utils.UnImplNode;
+
+import at.gv.egiz.pdfas.api.PdfAs;
+import at.gv.egiz.pdfas.api.analyze.AnalyzeParameters;
+import at.gv.egiz.pdfas.api.analyze.AnalyzeResult;
+import at.gv.egiz.pdfas.api.commons.DynamicSignatureLifetimeEnum;
+import at.gv.egiz.pdfas.api.commons.DynamicSignatureProfile;
+import at.gv.egiz.pdfas.api.exceptions.ErrorCode;
+import at.gv.egiz.pdfas.api.exceptions.PdfAsException;
+import at.gv.egiz.pdfas.api.sign.SignParameters;
+import at.gv.egiz.pdfas.api.sign.SignResult;
+import at.gv.egiz.pdfas.api.sign.SignatureDetailInformation;
+import at.gv.egiz.pdfas.api.verify.VerifyAfterAnalysisParameters;
+import at.gv.egiz.pdfas.api.verify.VerifyAfterReconstructXMLDsigParameters;
+import at.gv.egiz.pdfas.api.verify.VerifyParameters;
+import at.gv.egiz.pdfas.api.verify.VerifyResults;
+import at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigAfterAnalysisParameters;
+import at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigParameters;
+import at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigResult;
+
+public class PdfAsObject implements PdfAs {
+
+ public SignResult sign(SignParameters signParameters) throws PdfAsException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public SignResult sign(SignParameters signParameters,
+ SignatureDetailInformation signatureDetailInformation)
+ throws PdfAsException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public VerifyResults verify(VerifyParameters verifyParameters)
+ throws PdfAsException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public AnalyzeResult analyze(AnalyzeParameters analyzeParameters)
+ throws PdfAsException {
+ throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE,
+ new RuntimeException());
+ }
+
+ public ReconstructXMLDsigResult reconstructXMLDSIG(
+ ReconstructXMLDsigParameters reconstructXMLDsigParameters)
+ throws PdfAsException {
+ throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE,
+ new RuntimeException());
+ }
+
+ public ReconstructXMLDsigResult reconstructXMLDSIG(
+ ReconstructXMLDsigAfterAnalysisParameters reconstructXMLDsigParameters)
+ throws PdfAsException {
+ throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE,
+ new RuntimeException());
+ }
+
+ public VerifyResults verify(
+ VerifyAfterAnalysisParameters verifyAfterAnalysisParameters)
+ throws PdfAsException {
+ throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE,
+ new RuntimeException());
+ }
+
+ public VerifyResults verify(
+ VerifyAfterReconstructXMLDsigParameters verifyAfterReconstructXMLDsigParameters)
+ throws PdfAsException {
+ throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE,
+ new RuntimeException());
+ }
+
+ public void reloadConfig() throws PdfAsException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public List getProfileInformation() throws PdfAsException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public DynamicSignatureProfile createDynamicSignatureProfile(
+ String parentProfile, DynamicSignatureLifetimeEnum mode) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public DynamicSignatureProfile createDynamicSignatureProfile(
+ String myUniqueName, String parentProfile,
+ DynamicSignatureLifetimeEnum mode) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public DynamicSignatureProfile createEmptyDynamicSignatureProfile(
+ DynamicSignatureLifetimeEnum mode) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public DynamicSignatureProfile createEmptyDynamicSignatureProfile(
+ String myUniqueName, DynamicSignatureLifetimeEnum mode) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public DynamicSignatureProfile loadDynamicSignatureProfile(
+ String profileName) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public SignatureDetailInformation prepareSign(SignParameters signParameters)
+ throws PdfAsException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public SignResult finishSign(SignParameters signParameters,
+ SignatureDetailInformation signatureDetailInformation)
+ throws PdfAsException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public PdfAsObject(File workdirectory) {
+ //TODO
+ }
+
+}
diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/package-info.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/package-info.java
new file mode 100644
index 00000000..37867d98
--- /dev/null
+++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/package-info.java
@@ -0,0 +1,8 @@
+/**
+ *
+ */
+/**
+ * @author afitzek
+ *
+ */
+package at.gv.egiz.pdfas.wrapper; \ No newline at end of file