diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2008-03-04 13:18:44 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2008-03-04 13:18:44 +0000 |
commit | 364cb2a6dc344804504636df7b890793a44077d6 (patch) | |
tree | fe91ca9b924f75edc7ff614543699774824a9df3 /src/main/java/at/gv/egiz/pdfas/api/commons | |
parent | d85b325b85ccec65e86c02bf3373a334e3e68472 (diff) | |
download | pdf-as-3-364cb2a6dc344804504636df7b890793a44077d6.tar.gz pdf-as-3-364cb2a6dc344804504636df7b890793a44077d6.tar.bz2 pdf-as-3-364cb2a6dc344804504636df7b890793a44077d6.zip |
SignatureProfile extended in order to retrieve further profile information via API call.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@251 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/api/commons')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java b/src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java index 52bd27f..d5545e6 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java +++ b/src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java @@ -3,6 +3,8 @@ */
package at.gv.egiz.pdfas.api.commons;
+import java.util.Set;
+
/**
* Definition of a signature profile.
*
@@ -26,4 +28,34 @@ public interface SignatureProfile */
public String getMOAKeyIdentifier();
+ // start - modified by tknall
+
+ /**
+ * Returns the value of a field with a given key for the current profile.
+ * <p>
+ * e.g.<br/><code>signaturProfile.getField(SignatureTypes.SIG_ISSUER)</code><br/>
+ * returns <code>"Issuer-Certificate"</code>
+ * </p>
+ * <code>null</code> is returned if a field with key <code>key</code>
+ * could not be found.
+ *
+ * @param key
+ * The key for the field to be returned or <code>null</code> if
+ * there is not such field.
+ * @return The value of the field with key <code>key</key>.
+ * @see at.knowcenter.wag.egov.egiz.sig.SignatureTypes
+ */
+ public String getField(String key);
+
+ // added by tknall
+
+ /**
+ * Returns a set containing all field keys (properties starting with
+ * <code>sig_obj.CURRENT_PROFILE.key.</code> of the current profiles. The
+ * set should be unmodifiable.
+ */
+ public Set getFieldKeys();
+
+ // stop - modified by tknall
+
}
|