aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:14:07 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:14:07 +0000
commitbf6a76a3406aa000782d6ee496daab1fcd6354ff (patch)
tree3532bf19c385f329386c55012fe0849ed385001d /src/main
parent0f287d97329ce27b062d59bab5edf29e33a8c574 (diff)
downloadpdf-as-3-bf6a76a3406aa000782d6ee496daab1fcd6354ff.tar.gz
pdf-as-3-bf6a76a3406aa000782d6ee496daab1fcd6354ff.tar.bz2
pdf-as-3-bf6a76a3406aa000782d6ee496daab1fcd6354ff.zip
baik, timestamp, ognl
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@413 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObject.java42
1 files changed, 19 insertions, 23 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObject.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObject.java
index 1d7895e..4a88f4f 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObject.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/SignSignatureObject.java
@@ -5,14 +5,11 @@ package at.knowcenter.wag.egov.egiz.sig.connectors.bku;
import java.io.Serializable;
import java.security.cert.X509Certificate;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
-import org.apache.tools.ant.taskdefs.Length;
-
-import at.gv.egiz.pdfas.algorithmSuite.AlgorithmSuiteUtil;
+import at.gv.egiz.pdfas.api.timestamp.TimeStamper;
import at.knowcenter.wag.egov.egiz.sig.SignatureTypes;
import at.knowcenter.wag.egov.egiz.sig.signatureobject.AdditionalSignatureInformation;
import at.knowcenter.wag.egov.egiz.sig.signatureobject.AlgorithmSignatureInformation;
@@ -39,6 +36,8 @@ public class SignSignatureObject implements Serializable, MandatorySignatureInfo
public String sigAlgorithm;
+ public String sigTimeStamp;
+
/**
* This is used to transport the response properties to the Detached signator.
*/
@@ -52,6 +51,10 @@ public class SignSignatureObject implements Serializable, MandatorySignatureInfo
* </p>
*/
public X509Certificate x509Certificate = null;
+
+ // dferbas
+ private Map subjectDNMap = new HashMap();
+ private Map issuerDNMap = new HashMap();
/**
* @see at.knowcenter.wag.egov.egiz.sig.signatureobject.MandatorySignatureInformation#getDate()
@@ -166,22 +169,9 @@ public class SignSignatureObject implements Serializable, MandatorySignatureInfo
throw new RuntimeException("The key '" + sigKey + "' is not a recognized SignatorObject member."); //$NON-NLS-1$ //$NON-NLS-2$
}
-// public String certSubjectDNPart(String key) {
-// String val = null;
-// if (subjectDNMap == null) {
-// if (this.getX509Certificate() != null) {
-// val = extractDNPart(key, this.getX509Certificate().getSubjectX500Principal().getName());
-// }
-// return val;
-// }
-//
-// public String certIssuerDNPart(String key) {
-// String val = null;
-// if (this.getX509Certificate() != null) {
-// val = extractDNPart(key, this.getX509Certificate().getIssuerX500Principal().getName());
-// }
-// return val;
-// }
+ // dferbas
+
+
public String certSubjectDNPart(String key) {
if (this.subjectDNMap.size() == 0) {
@@ -193,6 +183,15 @@ public class SignSignatureObject implements Serializable, MandatorySignatureInfo
}
+ /**
+ * Get a timestamp if available as b64 string
+ * @see TimeStamper
+ * @return
+ */
+ public String getSigTimeStamp() {
+ return this.sigTimeStamp;
+ }
+
public String certIssuerDNPart(String key) {
if (this.issuerDNMap.size() == 0) {
if (this.getX509Certificate() != null) {
@@ -202,9 +201,6 @@ public class SignSignatureObject implements Serializable, MandatorySignatureInfo
return this.issuerDNMap.get(key).toString();
}
- private Map subjectDNMap = new HashMap();
- private Map issuerDNMap = new HashMap();
-
private void fillDNMap(String dn, Map dnMap) {
String[] arr = dn.split("\\s*(,|;)\\s*");