aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv')
-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();
+}