From 782e41eee1f04f86bc895a95cd2d51353284987a Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 18:51:24 +0000 Subject: Refactoring git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@11 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../model/pdf-signer-interface.uml | 485 -------------- pdf-over/pdf-signer-interface/pom.xml | 13 - .../pdfover/pdfsigner/ByteArrayDocumentSource.java | 29 - .../at/asit/pdfover/pdfsigner/CollimatingMark.java | 6 - .../at/asit/pdfover/pdfsigner/DocumentSource.java | 29 - .../at/asit/pdfover/pdfsigner/PDFSignator.java | 68 -- .../pdfover/pdfsigner/PDFSignatureException.java | 21 - .../java/at/asit/pdfover/pdfsigner/PDFSigner.java | 20 - .../asit/pdfover/pdfsigner/PDFSignerFactory.java | 6 - .../asit/pdfover/pdfsigner/PDFSignerInterface.java | 36 - .../java/at/asit/pdfover/pdfsigner/SLRequest.java | 13 - .../java/at/asit/pdfover/pdfsigner/SLResponse.java | 18 - .../java/at/asit/pdfover/pdfsigner/SignResult.java | 28 - .../at/asit/pdfover/pdfsigner/SignResultImpl.java | 37 - .../asit/pdfover/pdfsigner/SignatureDimension.java | 60 -- .../asit/pdfover/pdfsigner/SignatureParameter.java | 126 ---- .../asit/pdfover/pdfsigner/SignaturePosition.java | 117 ---- .../at/asit/pdfover/pdfsigner/SigningState.java | 20 - .../src/model/PDFSignerInterface.ucd | 209 ------ .../src/model/PDFSignerSequenz.usd | 109 --- .../src/model/images/PDFSignerInterface.svg | 743 --------------------- 21 files changed, 2193 deletions(-) delete mode 100644 pdf-over/pdf-signer-interface/model/pdf-signer-interface.uml delete mode 100644 pdf-over/pdf-signer-interface/pom.xml delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/ByteArrayDocumentSource.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/CollimatingMark.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/DocumentSource.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignator.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignatureException.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSigner.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerFactory.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerInterface.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLRequest.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLResponse.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResult.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResultImpl.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureDimension.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureParameter.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignaturePosition.java delete mode 100644 pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SigningState.java delete mode 100644 pdf-over/pdf-signer-interface/src/model/PDFSignerInterface.ucd delete mode 100644 pdf-over/pdf-signer-interface/src/model/PDFSignerSequenz.usd delete mode 100644 pdf-over/pdf-signer-interface/src/model/images/PDFSignerInterface.svg (limited to 'pdf-over/pdf-signer-interface') diff --git a/pdf-over/pdf-signer-interface/model/pdf-signer-interface.uml b/pdf-over/pdf-signer-interface/model/pdf-signer-interface.uml deleted file mode 100644 index 9e849a28..00000000 --- a/pdf-over/pdf-signer-interface/model/pdf-signer-interface.uml +++ /dev/null @@ -1,485 +0,0 @@ - - - - - - - - - - A Document Source -@author afitzek - - - - - base class for signature exceptions -@author afitzek - - - - - - - - - - - - The Dimensions of the visible signature block -@author afitzek - - - - The visible Signature block height - - - - - - - - The visible Signature block width - - - - - - - - Sets the width for the dimension -@param value - - - - - - - - Gets the width of the visible Signature block -@return - - - - - - - - Constructor -@param width The width of the signature block -@param height The height of the signature block - - - - - - - - - - - Sets the height for the dimension -@param value - - - - - - - - Gets the height of the visible Signature block -@return - - - - - - - - - Securtiy Layer Response -@author afitzek - - - - - - The state of the pdf signing library -@author afitzek - - - - Gets the Security Layer Request to create the signature -@return The SL Signature Request - - - - - - Sets the Security Layer Request to create the signature -@param value The SL Signature Request - - - - - - - Securtiy Layer Request -@author afitzek - - - - Gets the signature data for this request -@return The document source - - - - - - - The Signature Parameter -@author afitzek - - - - holds the collimating mark - - - - - - - The signature Device - - - - - - - - The signature Device - - - - - - - - The Signature Position - - - - - - - - Getter of the property <tt>signaturePosition</tt> -@return Returns the signaturePosition. - - - - - - Setter of the property <tt>documentSource</tt> -@param value The documentSource to set. - - - - - - Setter of the property <tt>KeyIdentifier</tt> -@param value The KeyIdentifier to set. - - - - - - Gets the collimating mark -@return - - - - - - Getter of the property <tt>documentSource</tt> -@return Returns the documentSource. - - - - - - Setter of the property <tt>signaturePosition</tt> -@param signaturePosition The signaturePosition to set. - - - - - - Sets the collimating mark -@param value The new colimating mark - - - - - - Gets the Dimension to display the Placeholder -@return the placeholder dimensions - - - - - - Getter of the property <tt>KeyIdentifier</tt> -@return Returns the KeyIdentifier. - - - - - - - Represents the position of a visible signature block -@author afitzek - - - - The page value of the position - - - - - - - - - The y value of the position - - - - - - - - - The x value of the position - - - - - - - - - Constructor -@param x The x value of the position -@param y The y value of the position -@param page The page value of the position - - - - - - - - - - - - - - X - Y Constructor Page = 1 -@param x The x value of the position -@param y The y value of the position - - - - - - - - - - - Gets the Y value of the position -@return int the y value of the position - - - - - - - - Sets X value of position -@param value the new x value - - - - - - - - Default constructor - - - - - Sets Y value of position -@param value the new y value - - - - - - - - Gets the Page value of the position -@return int the page value of the position - - - - - - - - Sets Page value of position -@param value the new page value - - - - - - - - Gets the X value of the position -@return int the x value of the position - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Signature Result containing the signed document as document source -@author afitzek - - - - Getter of the property <tt>signaturePosition</tt> -@return Returns the signaturePosition. - - - - - - Gets the signer certificate -@return The signer x509 certificate - - - - - - Gets the signed Document -@return Returns the documentSource. - - - - - - - PDF Signator base Class -This class should be extended to support PDF-AS and PADES. -@author afitzek - - - - Adds the signature to the document. -The SL Response has to be set in the state -@param state The siging state -@return The signature Result -@throws SignatureException - - - - - - - Prepare a signature -Defines signature parameters, the pdf library prepares the pdf document to sign and -creates a Security Layer Request. -@param parameter The signature parameters -@return The siging state (contains the prepared document and the signature request -@throws SignatureException - - - - - - - Creates new signing profile -@param base The profile id of the base profile -@param profileID The id of the new profile -@return The new Profile - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pdf-over/pdf-signer-interface/pom.xml b/pdf-over/pdf-signer-interface/pom.xml deleted file mode 100644 index 47c84098..00000000 --- a/pdf-over/pdf-signer-interface/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - - pdf-over - at.a-sit - 4.0-SNAPSHOT - .. - - pdf-signer-interface - PDFSignator Interface - 2012 - http://www.buergerkarte.at/ - \ No newline at end of file diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/ByteArrayDocumentSource.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/ByteArrayDocumentSource.java deleted file mode 100644 index 27e0c537..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/ByteArrayDocumentSource.java +++ /dev/null @@ -1,29 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -import java.io.ByteArrayInputStream; -import java.io.InputStream; - -public class ByteArrayDocumentSource implements DocumentSource { - - protected byte[] data; - - public ByteArrayDocumentSource(byte[] data) { - this.data = data; - } - - @Override - public InputStream GetInputStream() { - return new ByteArrayInputStream(this.data); - } - - @Override - public int GetLength() { - return data.length; - } - - @Override - public byte[] GetByteArray() { - return data; - } - -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/CollimatingMark.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/CollimatingMark.java deleted file mode 100644 index cfca74fa..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/CollimatingMark.java +++ /dev/null @@ -1,6 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -public interface CollimatingMark { - - public String GetFileName(); -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/DocumentSource.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/DocumentSource.java deleted file mode 100644 index dafe9797..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/DocumentSource.java +++ /dev/null @@ -1,29 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -import java.io.InputStream; - -/** - * A Document Source - * - * @author afitzek - */ -public interface DocumentSource { - - /** - * Gets Document as INput Stream - * @return - */ - public InputStream GetInputStream(); - - /** - * Get Length of document - * @return - */ - public int GetLength(); - - /** - * Get byte[] - * @return - */ - public byte[] GetByteArray(); -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignator.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignator.java deleted file mode 100644 index 9fb14b4a..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignator.java +++ /dev/null @@ -1,68 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -import java.util.HashMap; -import java.util.Map; - -/** - * PDF Signator Interface - * @author afitzek - */ -public class PDFSignator { - - protected static Map _factory; - - // Let Factory choose if instance can be cached or not - //protected static Map _signer; - - static { - //_signer = new HashMap(); - _factory = new HashMap(); - - - try { - @SuppressWarnings("rawtypes") - Class pdfAsClass = Class.forName("at.asit.pdfover.pdfsigner.pdfas.PDFASSignerFactory"); - PDFSignerFactory factory = (PDFSignerFactory)pdfAsClass.newInstance(); - RegisterPDFSigner(factory.GetPDFSignerType(), factory); - } catch (ClassNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (InstantiationException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IllegalAccessException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - } - - public static void RegisterPDFSigner(PDFSigner signer, PDFSignerFactory factory) { - _factory.put(signer, factory); - } - - protected static PDFSignerInterface GetSigner(PDFSigner signer) throws PDFSignatureException { - /*if (_signer.containsKey(signer)) { - return _signer.get(signer); - }*/ - - if(_factory.containsKey(signer)) { - //_signer.put(signer, _factory.get(signer).CreatePDFSigner()); - return _factory.get(signer).CreatePDFSigner(); - } else { - throw new PDFSignatureException("Unknown PDF Library: " + signer.toString()); - } - - //return _signer.get(signer); - } - - /** - * Gets a PDF Signer according to the chosen pdf signer library - * @param signer - * @return - * @throws PDFSignatureException - */ - public static PDFSignerInterface GetPDFSigner(PDFSigner signer) throws PDFSignatureException { - return GetSigner(signer); - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignatureException.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignatureException.java deleted file mode 100644 index 5a9a0073..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignatureException.java +++ /dev/null @@ -1,21 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -/** - * base class for signature exceptions - * @author afitzek - */ -public class PDFSignatureException extends Exception { - - /** - * - */ - private static final long serialVersionUID = 711578398780816710L; - - public PDFSignatureException(Throwable e) { - super(e); - } - - public PDFSignatureException(String msg) { - super(msg); - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSigner.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSigner.java deleted file mode 100644 index 332c111b..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSigner.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * - */ -package at.asit.pdfover.pdfsigner; - -/** - * Available PDF Signer libraries - * @author afitzek - */ -public enum PDFSigner { - /** - * @uml.property name="pDFAS" - * @uml.associationEnd - */ - PDFAS { - public String toString() { - return "PDFAS"; - } - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerFactory.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerFactory.java deleted file mode 100644 index 348c649a..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerFactory.java +++ /dev/null @@ -1,6 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -public abstract class PDFSignerFactory { - public abstract PDFSignerInterface CreatePDFSigner(); - public abstract PDFSigner GetPDFSignerType(); -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerInterface.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerInterface.java deleted file mode 100644 index 0d9592dc..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/PDFSignerInterface.java +++ /dev/null @@ -1,36 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -/** - * PDF Signator base Class - * This class should be extended to support PDF-AS and PADES. - * @author afitzek - */ -public interface PDFSignerInterface { - - /** - * Prepare a signature - * Defines signature parameters, the pdf library prepares the pdf document to sign and - * creates a Security Layer Request. - * @param parameter The signature parameters - * @return The siging state (contains the prepared document and the signature request - * @throws SignatureException - */ - public SigningState Prepare(SignatureParameter parameter) throws PDFSignatureException; - - /** - * Adds the signature to the document. - * The SL Response has to be set in the state - * @param state The siging state - * @return The signature Result - * @throws SignatureException - */ - public SignResult Sign(SigningState state) throws PDFSignatureException; - - /** - * Creates new signing profile - * @param base The profile id of the base profile - * @param profileID The id of the new profile - * @return The new Profile - */ - public SignatureParameter GetParameter(); -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLRequest.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLRequest.java deleted file mode 100644 index 74ad5862..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLRequest.java +++ /dev/null @@ -1,13 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -/** - * Securtiy Layer Request - * @author afitzek - */ -public interface SLRequest { - /** - * Gets the signature data for this request - * @return The document source - */ - public DocumentSource GetSignatureData(); -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLResponse.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLResponse.java deleted file mode 100644 index de98aa1a..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SLResponse.java +++ /dev/null @@ -1,18 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -/** - * Securtiy Layer Response - * @author afitzek - */ -public class SLResponse { - - private String response; - - public SLResponse(String value) { - response = value; - } - - public String GetSLRespone() { - return this.response; - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResult.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResult.java deleted file mode 100644 index 8069da4e..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResult.java +++ /dev/null @@ -1,28 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -import java.security.cert.X509Certificate; - -/** - * Signature Result containing the signed document as document source - * @author afitzek - */ -public interface SignResult { - - /** - * Getter of the property signaturePosition - * @return Returns the signaturePosition. - */ - public SignaturePosition GetSignaturePosition(); - - /** - * Gets the signed Document - * @return Returns the documentSource. - */ - public DocumentSource GetSignedDocument(); - - /** - * Gets the signer certificate - * @return The signer x509 certificate - */ - public X509Certificate GetSignerCertificate(); -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResultImpl.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResultImpl.java deleted file mode 100644 index 72a08d1f..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignResultImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -import java.security.cert.X509Certificate; - -public class SignResultImpl implements SignResult { - - private SignaturePosition position; - private DocumentSource source; - private X509Certificate certificate; - - @Override - public SignaturePosition GetSignaturePosition() { - return position; - } - - @Override - public DocumentSource GetSignedDocument() { - return source; - } - - @Override - public X509Certificate GetSignerCertificate() { - return certificate; - } - - public void SetSignerCertificate(X509Certificate x509Certificate) { - this.certificate = x509Certificate; - } - - public void SetSignaturePosition(SignaturePosition postion) { - this.position = postion; - } - - public void SetSignedDocument(DocumentSource source) { - this.source = source; - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureDimension.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureDimension.java deleted file mode 100644 index 57f628af..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureDimension.java +++ /dev/null @@ -1,60 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -/** - * The Dimensions of the visible signature block - * @author afitzek - */ -public class SignatureDimension { - - /** - * The visible Signature block width - */ - protected int width; - - /** - * The visible Signature block height - */ - protected int height; - - /** - * Sets the width for the dimension - * @param value - */ - public void SetWidth(int value) { - this.width = value; - } - - /** - * Constructor - * @param width The width of the signature block - * @param height The height of the signature block - */ - public SignatureDimension(int width, int height) { - this.width = width; - this.height = height; - } - - /** - * Gets the width of the visible Signature block - * @return - */ - public int GetWidth() { - return this.width; - } - - /** - * Sets the height for the dimension - * @param value - */ - public void SetHeight(int value) { - this.height = value; - } - - /** - * Gets the height of the visible Signature block - * @return - */ - public int GetHeight() { - return this.height; - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureParameter.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureParameter.java deleted file mode 100644 index 5876f1ef..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignatureParameter.java +++ /dev/null @@ -1,126 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -import java.util.HashMap; - -/** - * The Signature Parameter - * @author afitzek - */ -public abstract class SignatureParameter { - - /** - * The Signature Position - * @uml.property name="signaturePosition" - * @uml.associationEnd - */ - protected SignaturePosition signaturePosition = null; - - /** - * Getter of the property signaturePosition - * @return Returns the signaturePosition. - */ - public SignaturePosition GetSignaturePosition() { - return signaturePosition; - } - - /** - * Setter of the property signaturePosition - * @param signaturePosition The signaturePosition to set. - */ - public void SetSignaturePosition(SignaturePosition signaturePosition) { - this.signaturePosition = signaturePosition; - } - - /** - * The signature Device - */ - protected String KeyIdentifier = null; - - /** - * Getter of the property KeyIdentifier - * @return Returns the KeyIdentifier. - */ - public String GetKeyIdentifier() { - return KeyIdentifier; - } - - /** - * Setter of the property KeyIdentifier - * @param value The KeyIdentifier to set. - */ - public void SetKeyIdentifier(String value) { - this.KeyIdentifier = value; - } - - /** - * The signature Device - * @uml.property name="documentSource" - * @uml.associationEnd - */ - protected DocumentSource documentSource = null; - - /** - * Getter of the property documentSource - * @return Returns the documentSource. - */ - public DocumentSource GetInputDocument() { - return documentSource; - } - - /** - * Setter of the property documentSource - * @param value The documentSource to set. - */ - public void SetInputDocument(DocumentSource value) { - this.documentSource = value; - } - - /** - * Gets the Dimension to display the Placeholder - * @return the placeholder dimensions - */ - public abstract SignatureDimension GetPlaceholderDimension(); - - /** - * holds the collimating mark - * @uml.property name="collimark" - * @uml.associationEnd - */ - protected CollimatingMark collimark; - - /** - * Gets the collimating mark - * @return - */ - public CollimatingMark GetCollimatingMark() { - return collimark; - } - - /** - * Sets the collimating mark - * @param value The new colimating mark - */ - public void SetCollimatingMark(CollimatingMark value) { - this.collimark = value; - } - - protected HashMap _properties = new HashMap(); - - /** - * Sets generic properties - * @param key - * @param value - */ - public void SetProperty(String key, String value) { - this._properties.put(key, value); - } - - /** - * Gets generic properties - * @param key - * @return - */ - public String GetProperty(String key) { - return this._properties.get(key); - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignaturePosition.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignaturePosition.java deleted file mode 100644 index 82f37deb..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SignaturePosition.java +++ /dev/null @@ -1,117 +0,0 @@ -package at.asit.pdfover.pdfsigner; - - -/** - * Represents the position of a visible signature block - * @author afitzek - */ -public class SignaturePosition { - /** - * The x value of the position - */ - protected float x = 0; - - /** - * The y value of the position - */ - protected float y = 0; - - /** - * The page value of the position - */ - protected int page = 1; - - protected boolean auto = true; - - /** - * Default constructor - */ - public SignaturePosition() { - } - - /** - * X - Y Constructor Page = 1 - * @param x The x value of the position - * @param y The y value of the position - */ - public SignaturePosition(float x, float y) { - this.x = x; - this.y = y; - } - - /** - * Constructor - * @param x The x value of the position - * @param y The y value of the position - * @param page The page value of the position - */ - public SignaturePosition(float x, float y, int page) { - this.x = x; - this.y = y; - this.page = page; - } - - /** - * Sets X value of position - * @param value the new x value - */ - public void SetX(float value) { - this.x = value; - } - - /** - * Gets the X value of the position - * @return float the x value of the position - */ - public float GetX() { - return this.x; - } - - /** - * Sets Y value of position - * @param value the new y value - */ - public void SetY(float value) { - this.y = value; - } - - /** - * Gets the Y value of the position - * @return float the y value of the position - */ - public float GetY() { - return this.y; - } - - /** - * Sets Page value of position - * @param value the new page value - */ - public void SetPage(int value) { - this.page = value; - } - - /** - * Gets the Page value of the position - * @return int the page value of the position - */ - public int GetPage() { - return this.page; - } - - /** - * Sets Page value of position - * @param value the new page value - */ - public void SetAuto(boolean value) { - this.auto = value; - } - - /** - * Gets the Page value of the position - * @return int the page value of the position - */ - public boolean GetAuto() { - return this.auto; - } -} diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SigningState.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SigningState.java deleted file mode 100644 index d1920135..00000000 --- a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsigner/SigningState.java +++ /dev/null @@ -1,20 +0,0 @@ -package at.asit.pdfover.pdfsigner; - -/** - * The state of the pdf signing library - * @author afitzek - */ -public interface SigningState { - - /** - * Gets the Security Layer Request to create the signature - * @return The SL Signature Request - */ - public abstract SLRequest GetSLSignatureRequest(); - - /** - * Sets the Security Layer Request to create the signature - * @param value The SL Signature Request - */ - public abstract void SetSLSignatureResponse(SLResponse value); -} diff --git a/pdf-over/pdf-signer-interface/src/model/PDFSignerInterface.ucd b/pdf-over/pdf-signer-interface/src/model/PDFSignerInterface.ucd deleted file mode 100644 index b0c3edf6..00000000 --- a/pdf-over/pdf-signer-interface/src/model/PDFSignerInterface.ucd +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pdf-over/pdf-signer-interface/src/model/PDFSignerSequenz.usd b/pdf-over/pdf-signer-interface/src/model/PDFSignerSequenz.usd deleted file mode 100644 index 450d4fdf..00000000 --- a/pdf-over/pdf-signer-interface/src/model/PDFSignerSequenz.usd +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pdf-over/pdf-signer-interface/src/model/images/PDFSignerInterface.svg b/pdf-over/pdf-signer-interface/src/model/images/PDFSignerInterface.svg deleted file mode 100644 index a1cd1ccf..00000000 --- a/pdf-over/pdf-signer-interface/src/model/images/PDFSignerInterface.svg +++ /dev/null @@ -1,743 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GetSLSignatureRequest(): SLRequest - - - SetSLSignatureResponse(in value: SLResponse) - - - - SigningState - «interface» - - - - - - - - - - - - - - GetParameter(): SignatureParameter - - - Prepare(in parameter: SignatureParameter): SigningState - - - Sign(in state: SigningState): SignResult - - - - PDFSignerInterface - «interface» - - - - - - - - - - - - - - GetSignatureData(): DocumentSource - - - - SLRequest - - - - - - - - - SLResponse - - - - - - - - - - - - - - GetSignaturePosition(): SignaturePosition - - - GetSignedDocument(): DocumentSource - - - GetSignerCertificate(): Certificate - - - - SignResult - «interface» - - - - - - - - - - - - - - GetHeight(): int - - - GetWidth(): int - - - SetHeight(in value: int) - - - SetWidth(in value: int) - - - SignatureDimension(in width: int, in height: int) - - - - SignatureDimension - - - - - - - - - - - - - - GetPage(): int - - - GetX(): int - - - GetY(): int - - - SetPage(in value: int) - - - SetX(in value: int) - - - SetY(in value: int) - - - SignaturePosition(in x: int, in y: int) - - - SignaturePosition(in x: int, in y: int, in page: int) - - - SignaturePosition() - - - - SignaturePosition - - - - - - - - - CollimatingMark - - - - - - - - - - - - - - GetCollimatingMark(): CollimatingMark - - - GetInputDocument(): DocumentSource - - - GetKeyIdentifier(): String - - - GetPlaceholderDimension(): SignatureDimension - - - GetSignaturePosition(): SignaturePosition - - - SetCollimatingMark(in value: CollimatingMark) - - - SetInputDocument(in value: DocumentSource) - - - SetKeyIdentifier(in value: String) - - - SetSignaturePosition(in signaturePosition: SignaturePosition) - - - - SignatureParameter - - - - - - - - - DocumentSource - - # signaturePosition - 1 - - - - # collimark - 0..1 - - - - # documentSource - 1 - - - - - -- cgit v1.2.3