From 58a9ffc672ac3b883b31ffb1d047ab23ee5fab13 Mon Sep 17 00:00:00 2001 From: ferbas Date: Fri, 13 Nov 2009 13:14:47 +0000 Subject: refactored to signature object git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@414 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../connectors/bku/SignSignatureObjectHelper.java | 112 ++++++++++----------- 1 file changed, 56 insertions(+), 56 deletions(-) (limited to 'src/main/java/at/knowcenter') 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$ +// } +// +//} -- cgit v1.2.3