diff options
Diffstat (limited to 'pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover')
3 files changed, 68 insertions, 0 deletions
diff --git a/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java b/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java new file mode 100644 index 00000000..d75cc536 --- /dev/null +++ b/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java @@ -0,0 +1,39 @@ +/** + * + */ +package at.asit.pdfover.pdfsignator; + +import at.asit.pdfover.pdfsigner.SignResult; +import at.asit.pdfover.pdfsigner.SignatureParameter; +import at.asit.pdfover.pdfsigner.SLRequest; +import at.asit.pdfover.pdfsigner.SLResponse; +import at.asit.pdfover.pdfsigner.SigningState; + +/** + * The PDF-Signator Interface + * + * @author afitzek + */ +public interface PDFSignatorInterface { + + /** + * Creates signature parameter for the given pdf signer + * @param signer The pdf signer library + * @return The signature parameter + */ + public SignatureParameter GetSignatureParameters(PDFSigner signer); + + /** + * Prepares the signature + * @param parameter The signature parameter + * @return A Signature State for the signing library + */ + public SigningState SignPrepare(SignatureParameter parameter); + + /** + * Performs the signature + * @param response The signing state + * @return The signed document + */ + public SignResult SignPerform(SigningState state); +} diff --git a/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSigner.java b/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSigner.java new file mode 100644 index 00000000..6d8da945 --- /dev/null +++ b/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSigner.java @@ -0,0 +1,16 @@ +/** + * + */ +package at.asit.pdfover.pdfsignator; + +/** + * Available PDF Signer libraries + * @author afitzek + */ +public enum PDFSigner { + /** + * @uml.property name="pDFAS" + * @uml.associationEnd + */ + PDFAS +} diff --git a/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/SignedDocument.java b/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/SignedDocument.java new file mode 100644 index 00000000..1c8c28fe --- /dev/null +++ b/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/SignedDocument.java @@ -0,0 +1,13 @@ +/** + * + */ +package at.asit.pdfover.pdfsignator; + +/** + * Represents a Signed Document + * + * @author afitzek + */ +public class SignedDocument { + +} |