diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/commandline/Main.java | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/commandline/Main.java b/src/main/java/at/knowcenter/wag/egov/egiz/commandline/Main.java index ee12fff..b042360 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/commandline/Main.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/commandline/Main.java @@ -399,7 +399,7 @@ public abstract class Main }
carryOutCommand(mode, signature_mode, connector, signature_type, user_name, user_password, verify_which, input, output, pos_string);
-
+
}
catch (PresentableException e)
{
@@ -441,9 +441,10 @@ public abstract class Main // }
PrintWriter messageOutput = new PrintWriter(System.out);
-
+
+
if (mode.equals(VALUE_MODE_SIGN))
- {
+ {
carryOutSign(input, connector, signature_mode, signature_type, pos_string, user_name, user_password, output, messageOutput);
}
else
@@ -556,18 +557,18 @@ public abstract class Main // supported
// it should be checked in config file is it allowed to use MOA detached
// from command line.
- String msg = "Hinweis: Der MOA Detached Connector ist für die Kommandozeile nicht geeignet. Die Signatur wird daher im alten Base64 enveloping Format ausgeführt.";
- System.out.println(msg);
- logger_.warn(msg);
-
- if (signature_mode.equals(VALUE_SIGNATURE_MODE_BINARY))
- {
- signatorId = BinarySignator_1_0_0.MY_ID;
- }
- if (signature_mode.equals(VALUE_SIGNATURE_MODE_TEXTUAL))
- {
- signatorId = TextualSignator_1_0_0.MY_ID;
- }
+// String msg = "Hinweis: Der MOA Detached Connector ist für die Kommandozeile nicht geeignet. Die Signatur wird daher im alten Base64 enveloping Format ausgeführt.";
+// System.out.println(msg);
+// logger_.warn(msg);
+//
+// if (signature_mode.equals(VALUE_SIGNATURE_MODE_BINARY))
+// {
+// signatorId = BinarySignator_1_0_0.MY_ID;
+// }
+// if (signature_mode.equals(VALUE_SIGNATURE_MODE_TEXTUAL))
+// {
+// signatorId = TextualSignator_1_0_0.MY_ID;
+// }
}
logger_.debug("Finally used sign algorithm = " + signatorId);
|