From 969b89df9b5e517d917a897ace7bc9bfcadc5dcc Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 2 Mar 2007 08:46:14 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@42 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java index c474412..6b71551 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java @@ -1,7 +1,9 @@ package at.knowcenter.wag.egov.egiz.ldap.api; +import iaik.asn1.ObjectID; import iaik.security.ecc.provider.ECCProvider; import iaik.security.provider.IAIK; +import iaik.utils.RFC2253NameParser; import at.knowcenter.wag.egov.egiz.ldap.client.LDAPIssuerNameFilter; import at.knowcenter.wag.egov.egiz.sig.LDAPAPI; @@ -15,6 +17,9 @@ public abstract class LDAPAPIFactory { protected LDAPAPIFactory() { IAIK.addAsProvider(); ECCProvider.addAsProvider(); + + // Does not conform with PKIX, but is used by belgium citizen card + RFC2253NameParser.register("SERIALNUMBER", ObjectID.serialNumber); } public static synchronized LDAPAPIFactory getInstance(LDAPIssuerNameFilter ldapIssuerNameFilter) { -- cgit v1.2.3