aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java5
1 files changed, 5 insertions, 0 deletions
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) {