aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'moaSig/moa-sig-lib/src/main/java')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java9
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java8
2 files changed, 13 insertions, 4 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java
index 89f4c1e..15e44eb 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java
@@ -421,9 +421,9 @@ public class ConfigurationPartsBuilder {
}
/**
- * Returns the digest method algorithm name.
+ * Get the connection timeout to set-up a network connection
*
- * @return The digest method algorithm name from the configuration.
+ * @return timeout in milliseconds [ms]
*/
public int getConnectionTimeout()
{
@@ -445,6 +445,11 @@ public class ConfigurationPartsBuilder {
return defaultConnectionTimeout * 1000;
}
+ /**
+ * Get the timeout to receive data from a network connection that is already open
+ *
+ * @return timeout in milliseconds [ms]
+ */
public int getReadTimeout()
{
String connectionTimeout = getElementValue(getConfigElem(), READ_TIMEOUT_XPATH_, "30");
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java
index 6a007cf..7ae83cb 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java
@@ -380,8 +380,12 @@ public class ConfigurationProvider
keyGroupMappings =
builder.buildKeyGroupMappings(keyGroups, ANONYMOUS_ISSUER_SERIAL);
- connectionTimeout = builder.getConnectionTimeout();
- readTimeout = builder.getReadTimeout();
+ this.connectionTimeout = builder.getConnectionTimeout();
+ Logger.debug("Set 'Connection-Timeout' to " + String.valueOf(this.connectionTimeout) + "[ms]");
+
+ this.readTimeout = builder.getReadTimeout();
+ Logger.debug("Set 'Read-Timeout' to " + String.valueOf(this.readTimeout) + "[ms]");
+
pdfAsConfiguration = builder.getPDFASConfiguration();
adesFormResults = builder.getAdesFormResult();
xadesVersion = builder.getXAdESVersion();