From 05cad3335b6301e58d184b3867f74d748688d20b Mon Sep 17 00:00:00 2001 From: clemenso Date: Fri, 13 Nov 2009 16:12:38 +0000 Subject: IDE UTF-8 encoding git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@548 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/stal/service/impl/STALServiceImpl.java | 17 ----------------- .../at/gv/egiz/stal/service/impl/TestSignatureData.java | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java index 2ca108e0..eab9bed5 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java +++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java @@ -355,23 +355,6 @@ public class STALServiceImpl implements STALPortType { ref.setEncoding(TestSignatureData.ENCODING); response.getReference().add(ref); } -// GetHashDataInputResponseType.Reference ref = new GetHashDataInputResponseType.Reference(); -// ref.setID("signed-data-reference-0-1214921968-27971781-24309"); //Reference-" + TEST_SESSION_ID + "-001"); -// ref.setMimeType("text/plain"); - -// Charset charset; -// try { -// charset = Charset.forName("iso-8859-15"); -// ref.setEncoding("iso-8859-15"); -// } catch (Exception ex) { -// log.warn(ex.getMessage()); -// charset = Charset.defaultCharset(); -// ref.setEncoding(charset.toString()); -// } -// ref.setValue("hashdatainput-öäüß@€-00000000001".getBytes(charset)); - -// ref.setValue("Ich bin ein einfacher Text. llšŠŸ§Û".getBytes()); -// response.getReference().add(ref); return response; } diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/TestSignatureData.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/TestSignatureData.java index 19f53968..2f58bb3d 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/TestSignatureData.java +++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/TestSignatureData.java @@ -19,7 +19,7 @@ public final class TestSignatureData { public static final Map HASHDATA_INPUT = new HashMap(); static { try { - HASHDATA_INPUT.put(ID[0], "Ich bin ein einfacher Text. lll".getBytes(ENCODING)); + HASHDATA_INPUT.put(ID[0], "Ich bin ein einfacher Text. lläöü߀".getBytes(ENCODING)); HASHDATA_INPUT.put(ID[1], "2te referenz".getBytes(ENCODING)); } catch (UnsupportedEncodingException ex) { log.error("failed to init signature test data", ex); -- cgit v1.2.3