diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:49:29 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:49:29 +0000 |
commit | de166b5e111aab5ad53cae2bda440e9c17434d98 (patch) | |
tree | d3276c91d21bd05a9be622c0886a6224d229937a /pdf-over/pdf-signator-interface/src/main | |
parent | c811ca302d20fb6f2752f7b79787283882ee57a2 (diff) | |
download | mocca-de166b5e111aab5ad53cae2bda440e9c17434d98.tar.gz mocca-de166b5e111aab5ad53cae2bda440e9c17434d98.tar.bz2 mocca-de166b5e111aab5ad53cae2bda440e9c17434d98.zip |
PDFSignerInterface update
PDFSignatorInterface created
PDFSignator Project created
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@4 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over/pdf-signator-interface/src/main')
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 { + +} |