aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-27 10:51:46 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-27 10:51:46 +0000
commite07ff145437697c4ecc6ee160ada1261c00151fb (patch)
tree9a905e8a73e38c02af21ab675315eb4bf4055a4e /src/main/java/at/knowcenter
parent8a6617c310b3e8cea679588be152a0d1da9ef98e (diff)
downloadpdf-as-3-e07ff145437697c4ecc6ee160ada1261c00151fb.tar.gz
pdf-as-3-e07ff145437697c4ecc6ee160ada1261c00151fb.tar.bz2
pdf-as-3-e07ff145437697c4ecc6ee160ada1261c00151fb.zip
removed has_sig_id; removed moa.id.field.visible
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@354 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java96
1 files changed, 51 insertions, 45 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
index 450cb3c..4e6a77e 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
@@ -70,10 +70,7 @@ public abstract class ConnectorFactory
*/
private static final Logger logger_ = ConfigLogger.getLogger(ConnectorFactory.class);
- /**
- * Key value in property file
- */
- public static final String MOA_ID_VISIBLE_PROPERTY_KEY = "moa.id.field.visible";
+
/**
* Retrieves the ConnectorInformation from the connector Class.
@@ -310,49 +307,58 @@ public abstract class ConnectorFactory
{
return connector_identifier.equals(Constants.SIGNATURE_DEVICE_BKU) || connector_identifier.equals(Constants.SIGNATURE_DEVICE_A1) || connector_identifier.equals(Constants.SIGNATURE_DEVICE_MOC);
}
-
+
/**
- * Tells, if the given connector needs or produces SIG_IDs.
- *
- * <p>
- * This method is used when pre formatted signature blocks have to be created
- * that have to know if there will be a SIG_ID field or not.
- * </p>
- * <p>
- * Connectors like BKU produce SIG_IDs when signing that are needed when
- * verifying.
- * </p>
- *
- * @param connector
- * The connector.
- * @return Returns true, if the given connector uses SIG_IDs, false otherwise.
+ * Key value in property file
*/
- public static boolean needsSIG_ID(String connector)
- {
- // all modernn detached signatures have the SIG_ID field.
- if(connector.equals("moa"))
- {
- String is_id_field_visible = null;
-
- try
- {
- is_id_field_visible = SettingsReader.getInstance().getValueFromKey(MOA_ID_VISIBLE_PROPERTY_KEY);
- } catch (SettingsException e)
- {
- logger_.error(e.getMessage(), e);
- }
-
- // if not setted in config, show it
- if(is_id_field_visible == null)
- return true;
- if(is_id_field_visible.equals("true"))
- return true;
- else
- return false;
- }
+ // dferbas: not used anymore with dynamic algorithm support.
+ // field has to be showed/embedded except for default algorithm suites
+ // use signature block layout to show/hide
+ //public static final String MOA_ID_VISIBLE_PROPERTY_KEY = "moa.id.field.visible";
- return true;
- //return !connector.equals("moa");
- }
+ // dferbas: not used anymore
+// /**
+// * Tells, if the given connector needs or produces SIG_IDs.
+// *
+// * <p>
+// * This method is used when pre formatted signature blocks have to be created
+// * that have to know if there will be a SIG_ID field or not.
+// * </p>
+// * <p>
+// * Connectors like BKU produce SIG_IDs when signing that are needed when
+// * verifying.
+// * </p>
+// *
+// * @param connector
+// * The connector.
+// * @return Returns true, if the given connector uses SIG_IDs, false otherwise.
+// */
+// public static boolean needsSIG_ID(String connector)
+// {
+// // all modernn detached signatures have the SIG_ID field.
+// if(connector.equals("moa"))
+// {
+// String is_id_field_visible = null;
+//
+// try
+// {
+// is_id_field_visible = SettingsReader.getInstance().getValueFromKey(MOA_ID_VISIBLE_PROPERTY_KEY);
+// } catch (SettingsException e)
+// {
+// logger_.error(e.getMessage(), e);
+// }
+//
+// // if not setted in config, show it
+// if(is_id_field_visible == null)
+// return true;
+// if(is_id_field_visible.equals("true"))
+// return true;
+// else
+// return false;
+// }
+//
+// return true;
+// //return !connector.equals("moa");
+// }
}