aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-03-05 12:29:57 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-03-05 12:29:57 +0000
commit3230d71393a3e48d95f5a8e0b659d471abbaf66e (patch)
tree8683e0dcd6872b234df0f08b2c53949e2cbd7a09 /src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java
parenta75c0b5bbe5e5f1fc08750518dd67175346126fe (diff)
downloadpdf-as-3-3230d71393a3e48d95f5a8e0b659d471abbaf66e.tar.gz
pdf-as-3-3230d71393a3e48d95f5a8e0b659d471abbaf66e.tar.bz2
pdf-as-3-3230d71393a3e48d95f5a8e0b659d471abbaf66e.zip
SignatureProfile interface modified. Added method to retrieve signature block entries of the current profile relevant for the signature block search algorithm.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@253 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/api/commons/SignatureProfile.java82
1 files changed, 34 insertions, 48 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 d5545e6..a490327 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,59 +3,45 @@
*/
package at.gv.egiz.pdfas.api.commons;
-import java.util.Set;
+import java.util.Properties;
/**
* Definition of a signature profile.
*
* @author wprinz
*/
-public interface SignatureProfile
-{
- // TODO: the full profile information will be implemented in future
-
- /**
- * Returns the profile id.
- *
- * @return Returns the profile id.
- */
- public String getProfileId();
-
- /**
- * Returns the MOA KeyIdentifier.
- *
- * @return Returns the MOA KeyIdentifier.
- */
- 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
+public interface SignatureProfile {
+ // TODO: the full profile information will be implemented in future
+
+ /**
+ * Returns the profile id.
+ *
+ * @return Returns the profile id.
+ */
+ public String getProfileId();
+
+ /**
+ * Returns the MOA KeyIdentifier.
+ *
+ * @return Returns the MOA KeyIdentifier.
+ */
+ public String getMOAKeyIdentifier();
+
+ // start - modified by tknall
+
+ /**
+ * Returns the entries relevant to the search algorithm for signature blocks.<br/>
+ * e.g. properties starting with <code>sig_obj.PROFILE.key.</code> and
+ * properties of the form <code>sig_obj.PROFILE.table.TABLENAME.NUMBER</code>
+ * where <code>PROFILE</code> is the name of the current profile,
+ * <code>TABLENAME</code> is the name of a table and <code>NUMBER</code>
+ * is the number of the specific row within the table <code>TABLENAME</code>.
+ *
+ * @return The entries relevant to the signature block search algorithm as
+ * Java properties.
+ */
+ public Properties getSignatureBlockEntries();
+
+ // stop - modified by tknall
}