From 3230d71393a3e48d95f5a8e0b659d471abbaf66e Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 5 Mar 2008 12:29:57 +0000 Subject: 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 --- .../egiz/pdfas/api/commons/SignatureProfile.java | 82 +++++++++------------- 1 file changed, 34 insertions(+), 48 deletions(-) (limited to 'src/main/java/at/gv/egiz/pdfas/api') 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. - *

- * e.g.
signaturProfile.getField(SignatureTypes.SIG_ISSUER)
- * returns "Issuer-Certificate" - *

- * null is returned if a field with key key - * could not be found. - * - * @param key - * The key for the field to be returned or null if - * there is not such field. - * @return The value of the field with 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 - * sig_obj.CURRENT_PROFILE.key. 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.
+ * e.g. properties starting with sig_obj.PROFILE.key. and + * properties of the form sig_obj.PROFILE.table.TABLENAME.NUMBER + * where PROFILE is the name of the current profile, + * TABLENAME is the name of a table and NUMBER + * is the number of the specific row within the table TABLENAME. + * + * @return The entries relevant to the signature block search algorithm as + * Java properties. + */ + public Properties getSignatureBlockEntries(); + + // stop - modified by tknall } -- cgit v1.2.3