aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:14:47 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:14:47 +0000
commit58a9ffc672ac3b883b31ffb1d047ab23ee5fab13 (patch)
tree1e8e3dcbf5196661e7d67d1709d36ae6d1eb8f04 /src
parentbf6a76a3406aa000782d6ee496daab1fcd6354ff (diff)
downloadpdf-as-3-58a9ffc672ac3b883b31ffb1d047ab23ee5fab13.tar.gz
pdf-as-3-58a9ffc672ac3b883b31ffb1d047ab23ee5fab13.tar.bz2
pdf-as-3-58a9ffc672ac3b883b31ffb1d047ab23ee5fab13.zip
refactored to signature object
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@414 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObjectHelper.java112
1 files changed, 56 insertions, 56 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObjectHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObjectHelper.java
index fa44811..612df78 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObjectHelper.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObjectHelper.java
@@ -1,56 +1,56 @@
-/**
- *
- */
-package at.knowcenter.wag.egov.egiz.sig.connectors.bku;
-
-import at.knowcenter.wag.egov.egiz.sig.SignatureObject;
-import at.knowcenter.wag.egov.egiz.sig.SignatureTypes;
-
-/**
- * @author wprinz
- *
- */
-public abstract class SignSignatureObjectHelper
-{
- public static String retrieveStringValueFromSignatureObject (SignSignatureObject so, String key)
- {
- // mandatory
- if (key.equals(SignatureTypes.SIG_DATE))
- {
- return so.getDate();
- }
- if (key.equals(SignatureTypes.SIG_VALUE))
- {
- return so.getSignatureValue();
- }
- if (key.equals(SignatureTypes.SIG_ISSUER))
- {
- return so.getIssuer();
- }
- if (key.equals(SignatureTypes.SIG_NUMBER))
- {
- return so.getSerialNumber();
- }
-
- // connector
- if (key.equals(SignatureTypes.SIG_ID))
- {
- return so.getSigID();
- }
-
- // algorithm
- if (key.equals(SignatureTypes.SIG_KZ))
- {
- return so.getSigKZ();
- }
-
- // additional
- if (key.equals(SignatureTypes.SIG_NAME))
- {
- return so.getName();
- }
-
- throw new RuntimeException("The key '" + key + "' is not a recognized SignatorObject member."); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
-}
+///**
+// *
+// */
+//package at.knowcenter.wag.egov.egiz.sig.connectors.bku;
+//
+//import at.knowcenter.wag.egov.egiz.sig.SignatureObject;
+//import at.knowcenter.wag.egov.egiz.sig.SignatureTypes;
+//
+///**
+// * @author wprinz
+// *
+// */
+//public abstract class SignSignatureObjectHelper
+//{
+// public static String retrieveStringValueFromSignatureObject (SignSignatureObject so, String key)
+// {
+// // mandatory
+// if (key.equals(SignatureTypes.SIG_DATE))
+// {
+// return so.getDate();
+// }
+// if (key.equals(SignatureTypes.SIG_VALUE))
+// {
+// return so.getSignatureValue();
+// }
+// if (key.equals(SignatureTypes.SIG_ISSUER))
+// {
+// return so.getIssuer();
+// }
+// if (key.equals(SignatureTypes.SIG_NUMBER))
+// {
+// return so.getSerialNumber();
+// }
+//
+// // connector
+// if (key.equals(SignatureTypes.SIG_ID))
+// {
+// return so.getSigID();
+// }
+//
+// // algorithm
+// if (key.equals(SignatureTypes.SIG_KZ))
+// {
+// return so.getSigKZ();
+// }
+//
+// // additional
+// if (key.equals(SignatureTypes.SIG_NAME))
+// {
+// return so.getName();
+// }
+//
+// throw new RuntimeException("The key '" + key + "' is not a recognized SignatorObject member."); //$NON-NLS-1$ //$NON-NLS-2$
+// }
+//
+//}