diff options
Diffstat (limited to 'trunk/pdf-over/pdf-signator-interface/src')
3 files changed, 11 insertions, 29 deletions
diff --git a/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java b/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java index d75cc536..094d7523 100644 --- a/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java +++ b/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/PDFSignatorInterface.java @@ -3,10 +3,11 @@ */ package at.asit.pdfover.pdfsignator; +import java.security.SignatureException; + +import at.asit.pdfover.pdfsigner.PDFSignatureException; 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; /** @@ -28,12 +29,12 @@ public interface PDFSignatorInterface { * @param parameter The signature parameter * @return A Signature State for the signing library */ - public SigningState SignPrepare(SignatureParameter parameter); + public SigningState SignPrepare(SignatureParameter parameter) throws PDFSignatureException; /** * Performs the signature * @param response The signing state * @return The signed document */ - public SignResult SignPerform(SigningState state); + public SignResult SignPerform(SigningState state) throws PDFSignatureException; } diff --git a/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/SignedDocument.java b/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/SignedDocument.java deleted file mode 100644 index 1c8c28fe..00000000 --- a/trunk/pdf-over/pdf-signator-interface/src/main/java/at/asit/pdfover/pdfsignator/SignedDocument.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * - */ -package at.asit.pdfover.pdfsignator; - -/** - * Represents a Signed Document - * - * @author afitzek - */ -public class SignedDocument { - -} diff --git a/trunk/pdf-over/pdf-signator-interface/src/model/PDFSignatorInterface.ucd b/trunk/pdf-over/pdf-signator-interface/src/model/PDFSignatorInterface.ucd index 2ed18b62..2a011e93 100644 --- a/trunk/pdf-over/pdf-signator-interface/src/model/PDFSignatorInterface.ucd +++ b/trunk/pdf-over/pdf-signator-interface/src/model/PDFSignatorInterface.ucd @@ -1,12 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<editmodel:ClassDiagramEditModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:editmodel="editmodel.xmi" xmlns:options="options.xmi" name="PDFSignatorInterface" size="1484,325" id="at.asit.pdfover.pdfsignator" metadata="uml2-1.0" initialized="true" tag="1000" key="32303037303533312D31303030207064662D7369676E61746F722D696E746572666163652F616669747A656B"> - <children xsi:type="editmodel:ClassEditModel" name="SignedDocument" location="384,50" size="168,30" id="at.asit.pdfover.pdfsignator/SignedDocument" runTimeClassModel=""> - <children xsi:type="editmodel:CompartmentEditModel" size="0,0"/> - <children xsi:type="editmodel:CompartmentEditModel" size="0,0"/> - <children xsi:type="editmodel:CompartmentEditModel" size="0,0"/> - <classifierPreferences xsi:type="editmodel:UMLClassDiagramClassifierPreference" showStereotype="true" showMethodsParameterTypes="true" showMethodsReturnType="true" showMethodsParameterNames="true" showMethodsParameterKinds="true" attributeSorter="Natural" methodSorter="Natural" innerClassSorter="Natural" showPublicAttributes="true" showPackageAttributes="true" showStaticAttributes="true" showPublicMethods="true" showStaticMethods="true" showPublicInnerClasses="true" showPackageInnerClasses="true" showStaticInnerClasses="true" packageIndication="3" showAttributeProperty="true"/> - </children> - <children xsi:type="editmodel:InterfaceEditModel" name="PDFSignatorInterface" location="216,142" size="435,117" id="at.asit.pdfover.pdfsignator/PDFSignatorInterface" runTimeClassModel="SignPerform(Lat.asit.pdfover.pdfsigner.SLResponse;),SignPrepare(Lat.asit.pdfover.pdfsigner.SignatureParameter;),GetSignatureParameters(Lat.asit.pdfover.pdfsignator.PDFSigner;)"> +<editmodel:ClassDiagramEditModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:editmodel="editmodel.xmi" xmlns:options="options.xmi" name="PDFSignatorInterface" size="1483,325" id="at.asit.pdfover.pdfsignator" metadata="uml2-1.0" initialized="true" tag="1000" key="32303037303533312D31303030207064662D7369676E61746F722D696E746572666163652F616669747A656B"> + <children xsi:type="editmodel:InterfaceEditModel" name="PDFSignatorInterface" location="60,45" size="435,117" id="at.asit.pdfover.pdfsignator/PDFSignatorInterface" runTimeClassModel="SignPerform(Lat.asit.pdfover.pdfsigner.SigningState;),SignPrepare(Lat.asit.pdfover.pdfsigner.SignatureParameter;),GetSignatureParameters(Lat.asit.pdfover.pdfsignator.PDFSigner;)"> <children xsi:type="editmodel:CompartmentEditModel" size="0,0"/> <children xsi:type="editmodel:CompartmentEditModel" size="412,54"> <children xsi:type="editmodel:MethodEditModel" name="GetSignatureParameters" id="at.asit.pdfover.pdfsignator/PDFSignatorInterface#GetSignatureParameters(Lat.asit.pdfover.pdfsignator.PDFSigner;)"/> @@ -14,14 +8,14 @@ <children xsi:type="editmodel:MethodEditModel" name="SignPrepare" id="at.asit.pdfover.pdfsignator/PDFSignatorInterface#SignPrepare(Lat.asit.pdfover.pdfsigner.SignatureParameter;)"/> </children> <children xsi:type="editmodel:CompartmentEditModel" size="0,0"/> - <sourceConnections xsi:type="editmodel:DependencyEditModel" autoLocated="true" id="at.asit.pdfover.pdfsignator/PDFSignatorInterface-Soyatec::Import->at.asit.pdfover.pdfsignator/PDFSigner" source="//@children.1" target="//@children.2" targetEnd="//@children.1/@sourceConnections.0/@children.2" label="//@children.1/@sourceConnections.0/@children.0" sourceEnd="//@children.1/@sourceConnections.0/@children.1" connectionRouterKind="Manual"> + <sourceConnections xsi:type="editmodel:DependencyEditModel" autoLocated="true" id="at.asit.pdfover.pdfsignator/PDFSignatorInterface-Soyatec::Import->at.asit.pdfover.pdfsignator/PDFSigner" source="//@children.0" target="//@children.1" targetEnd="//@children.0/@sourceConnections.0/@children.2" label="//@children.0/@sourceConnections.0/@children.0" sourceEnd="//@children.0/@sourceConnections.0/@children.1" connectionRouterKind="Manual"> <children xsi:type="editmodel:WireLabelEditModel" name="«Import»" size="51,13" anchorKind="MiddlePart"/> - <children xsi:type="editmodel:AssociationEndEditModel" location="0,104" attachSource="true"/> - <children xsi:type="editmodel:AssociationEndEditModel" location="119,12"/> + <children xsi:type="editmodel:AssociationEndEditModel" location="54,117" attachSource="true"/> + <children xsi:type="editmodel:AssociationEndEditModel" location="64,0"/> </sourceConnections> <classifierPreferences xsi:type="editmodel:UMLClassDiagramClassifierPreference" showStereotype="true" showMethodsParameterTypes="true" showMethodsReturnType="true" showMethodsParameterNames="true" showMethodsParameterKinds="true" attributeSorter="Natural" methodSorter="Natural" innerClassSorter="Natural" showPublicAttributes="true" showPackageAttributes="true" showStaticAttributes="true" showPublicMethods="true" showStaticMethods="true" showPublicInnerClasses="true" showPackageInnerClasses="true" showStaticInnerClasses="true" packageIndication="3" showAttributeProperty="true"/> </children> - <children xsi:type="editmodel:EnumerationEditModel" targetConnections="//@children.1/@sourceConnections.0" name="PDFSigner" location="50,234" size="119,71" id="at.asit.pdfover.pdfsignator/PDFSigner" runTimeClassModel="PDFAS%"> + <children xsi:type="editmodel:EnumerationEditModel" targetConnections="//@children.0/@sourceConnections.0" name="PDFSigner" location="50,234" size="119,71" id="at.asit.pdfover.pdfsignator/PDFSigner" runTimeClassModel="PDFAS%"> <children xsi:type="editmodel:CompartmentEditModel" size="54,18"> <children xsi:type="editmodel:EnumerationLiteralEditModel" name="PDFAS" id="at.asit.pdfover.pdfsignator/PDFSigner#PDFAS%"/> </children> |