From a0573ca917785863bc69f5399ab43ed7981c500f Mon Sep 17 00:00:00 2001 From: knowcenter Date: Fri, 24 Aug 2007 11:25:42 +0000 Subject: TR: Update zu SwA-Kommunikation mit MOA-SS/SP git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@193 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../knowcenter/wag/egov/egiz/commandline/Main.java | 31 +++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src') 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); -- cgit v1.2.3