From 50e7afe5e4985840c9ad4eafb8a1379357c8b08e Mon Sep 17 00:00:00 2001 From: rudolf Date: Wed, 23 Mar 2005 11:47:29 +0000 Subject: =?UTF-8?q?Implementierung=20ge=C3=A4ndert,=20da=20URI=20auf=20man?= =?UTF-8?q?chen=20Linux=20Systemen/JDKs=20Probleme=20bereitet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@276 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../src/at/gv/egovernment/moa/id/util/ECDSAKeyValueConverter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'id.server/src/at/gv/egovernment/moa') diff --git a/id.server/src/at/gv/egovernment/moa/id/util/ECDSAKeyValueConverter.java b/id.server/src/at/gv/egovernment/moa/id/util/ECDSAKeyValueConverter.java index ca609a027..adb28d4ed 100644 --- a/id.server/src/at/gv/egovernment/moa/id/util/ECDSAKeyValueConverter.java +++ b/id.server/src/at/gv/egovernment/moa/id/util/ECDSAKeyValueConverter.java @@ -62,9 +62,11 @@ public static PublicKey element2ECDSAPublicKey(Element keyValueElem) throws Exce if (namedCurve != null) { - URI curveNameURN = new URI(namedCurve.getAttributeNS(null, "URN")); + // URL curveNameURN = new URL(namedCurve.getAttributeNS(null, "URN")); + String curveNameOID = namedCurve.getAttributeNS(null, "URN").substring(8); ECCParameterFactory eccParamFactory = ECCParameterFactory.getInstance(); - eccParameterSpec = eccParamFactory.getParameterByOID(curveNameURN.getPath().substring(4)); + // eccParameterSpec = eccParamFactory.getParameterByOID(curveNameURN.getPath().substring(4)); + eccParameterSpec = eccParamFactory.getParameterByOID(curveNameOID); } else { -- cgit v1.2.3