From 3c4eac027bfd68bfce63a2eed010ccc2b7310802 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 16 Oct 2014 09:43:49 +0200 Subject: PreProcessor Interface added and API rebuild --- .../pdfas/lib/api/preprocessor/PreProcessor.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/preprocessor/PreProcessor.java (limited to 'pdf-as-lib') 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(); +} -- cgit v1.2.3