From a214f9a279fc764da26f2c79505ef2835b375d57 Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 1 Dec 2010 15:46:54 +0000 Subject: Since the subject name in the signature block does not affect verification a more user friendly version is used where escaped Names are already resolved. Instead of strict RFC2253 name "serialNumber=xxx,CN=xxx,OU=xxx,O=x\, xx,C=AT" the following user friendly name ist used: "serialNumber=xxx,CN=xxx,OU=xxx,O=x, xx,C=AT" git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@664 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/knowcenter/wag/egov/egiz/sig/X509Cert.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/X509Cert.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/X509Cert.java index 3e230c5..62eee98 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/X509Cert.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/X509Cert.java @@ -143,7 +143,7 @@ public class X509Cert implements Serializable String serial_num = cert.getSerialNumber().toString(); String issuer = cert.getIssuerDN().getName(); issuer = issuer.replaceAll(", ", ","); - String subject_name = cert.getSubjectDN().getName(); + String subject_name = cert.getSubjectDN().toString(); x509_cert.setSerialNumber(serial_num); x509_cert.setIssuerName(issuer); x509_cert.setSubjectName(subject_name); @@ -175,7 +175,7 @@ public class X509Cert implements Serializable String serial_num = cert.getSerialNumber().toString(); String issuer = cert.getIssuerDN().getName(); issuer = issuer.replaceAll(", ", ","); - String subject_name = cert.getSubjectDN().getName(); + String subject_name = cert.getSubjectDN().toString(); x509_cert.setSerialNumber(serial_num); x509_cert.setIssuerName(issuer); x509_cert.setSubjectName(subject_name); @@ -203,7 +203,7 @@ public class X509Cert implements Serializable String serial_num = cert.getSerialNumber().toString(); String issuer = cert.getIssuerDN().getName(); issuer = issuer.replaceAll(", ", ","); - String subject_name = cert.getSubjectDN().getName(); + String subject_name = cert.getSubjectDN().toString(); x509_cert.setSerialNumber(serial_num); x509_cert.setIssuerName(issuer); x509_cert.setSubjectName(subject_name); @@ -269,7 +269,7 @@ public class X509Cert implements Serializable String serial_num = cert.getSerialNumber().toString(); String issuer = cert.getIssuerDN().getName(); issuer = issuer.replaceAll(", ", ","); - String subject_name = cert.getSubjectDN().getName(); + String subject_name = cert.getSubjectDN().toString(); x509_cert.setSerialNumber(serial_num); x509_cert.setIssuerName(issuer); x509_cert.setSubjectName(subject_name); -- cgit v1.2.3