aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-16 09:43:49 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-16 09:43:49 +0200
commit3c4eac027bfd68bfce63a2eed010ccc2b7310802 (patch)
tree507f8586045b57e4457da23ce7aedca6a497a913 /pdf-as-lib/src/main
parent00894355450179bea4b56e0abcf16243964ff286 (diff)
downloadpdf-as-4-3c4eac027bfd68bfce63a2eed010ccc2b7310802.tar.gz
pdf-as-4-3c4eac027bfd68bfce63a2eed010ccc2b7310802.tar.bz2
pdf-as-4-3c4eac027bfd68bfce63a2eed010ccc2b7310802.zip
PreProcessor Interface added and API rebuild
Diffstat (limited to 'pdf-as-lib/src/main')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/preprocessor/PreProcessor.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/preprocessor/PreProcessor.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/preprocessor/PreProcessor.java
new file mode 100644
index 00000000..a70d31d7
--- /dev/null
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/preprocessor/PreProcessor.java
@@ -0,0 +1,35 @@
+package at.gv.egiz.pdfas.lib.api.preprocessor;
+
+import at.gv.egiz.pdfas.common.exceptions.PDFASError;
+import at.gv.egiz.pdfas.lib.api.sign.SignParameter;
+import at.gv.egiz.pdfas.lib.api.verify.VerifyParameter;
+
+/**
+ * The Interface PreProcessor.
+ */
+public interface PreProcessor {
+
+ /**
+ * Sign.
+ *
+ * @param parameter the parameter
+ * @throws PDFASError the PDFAS error
+ */
+ public void sign(SignParameter parameter) throws PDFASError;
+
+ /**
+ * Verify.
+ *
+ * @param parameter the parameter
+ * @throws PDFASError the PDFAS error
+ */
+ public void verify(VerifyParameter parameter) throws PDFASError;
+
+
+ /**
+ * Registration position.
+ *
+ * @return the int
+ */
+ public int registrationPosition();
+}