aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-01 15:46:54 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-01 15:46:54 +0000
commita214f9a279fc764da26f2c79505ef2835b375d57 (patch)
tree89f746f05181a6e44d2c90a09fc81d02b6744962 /src/main/java/at/knowcenter/wag/egov/egiz
parentdfb14689d6d7b5db8f518d8e908571e29ca7afe1 (diff)
downloadpdf-as-3-a214f9a279fc764da26f2c79505ef2835b375d57.tar.gz
pdf-as-3-a214f9a279fc764da26f2c79505ef2835b375d57.tar.bz2
pdf-as-3-a214f9a279fc764da26f2c79505ef2835b375d57.zip
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
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov/egiz')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/X509Cert.java8
1 files changed, 4 insertions, 4 deletions
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);