summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-06 11:23:09 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-06 11:23:09 +0200
commit01dbd709e7ed34ec7b6bc5fb02f2d5a3399dd35e (patch)
treed550b9da3fa9d078de315e386565220e0c6fdf0a /eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java
parent34e3848720e95afe415206b1d0d1ceeef773dd1e (diff)
downloadEAAF-Components-01dbd709e7ed34ec7b6bc5fb02f2d5a3399dd35e.tar.gz
EAAF-Components-01dbd709e7ed34ec7b6bc5fb02f2d5a3399dd35e.tar.bz2
EAAF-Components-01dbd709e7ed34ec7b6bc5fb02f2d5a3399dd35e.zip
verifyXML: parametrize xpath pointing to Signature location
- Add two methods to public interface of ISignatureVerificationService, where caller can specify xpath. - Ignore intellj project files.
Diffstat (limited to 'eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java')
-rw-r--r--eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java37
1 files changed, 34 insertions, 3 deletions
diff --git a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java
index 420fe5dc..a3243635 100644
--- a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java
+++ b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/api/ISignatureVerificationService.java
@@ -11,7 +11,7 @@ public interface ISignatureVerificationService {
/**
* Verify a CAdES or CMS signature
* <br><br>
- * <i>This method only validates the first CMS or CAdES signature of more than one signature exists</i>
+ * <i>This method only validates the first CMS or CAdES signature if more than one signature exists</i>
*
* @param signature Enveloped CMS or CAdES signature
* @param trustProfileID Id of the Trust-Profile from MOA-Sig configuration
@@ -26,7 +26,7 @@ public interface ISignatureVerificationService {
/**
* Verify a XML or XAdES signature
* <br><br>
- * <i>This method only validates the first XML or XAdES signature of more than one signature exists</i>
+ * <i>This method only validates the first XML or XAdES signature if more than one signature exists</i>
*
* @param signature Serialized XML or XAdES signature
* @param trustProfileID Id of the Trust-Profile from MOA-Sig configuration
@@ -39,7 +39,7 @@ public interface ISignatureVerificationService {
/**
* Verify a XML or XAdES signature
* <br><br>
- * <i>This method only validates the first XML or XAdES signature of more than one signature exists</i>
+ * <i>This method only validates the first XML or XAdES signature if more than one signature exists</i>
*
* @param signature Serialized XML or XAdES signature
* @param trustProfileID Id of the Trust-Profile from MOA-Sig configuration
@@ -50,4 +50,35 @@ public interface ISignatureVerificationService {
IXMLSignatureVerificationResponse verifyXMLSignature(byte[] signature, String trustProfileID,
List<String> verifyTransformsInfoProfileID) throws MOASigServiceException;
+
+ /**
+ * Verify a XML or XAdES signature
+ * <br><br>
+ * <i>This method only validates the first XML or XAdES signature if more than one signature exists</i>
+ *
+ * @param signature Serialized XML or XAdES signature
+ * @param trustProfileID Id of the Trust-Profile from MOA-Sig configuration
+ * @param signatureLocationXpath Xpath that points to location of Signature element
+ * @return @link {@link IXMLSignatureVerificationResponse}, or null if no signature was found
+ * @throws MOASigServiceException on signatue-verification error
+ */
+ IXMLSignatureVerificationResponse verifyXMLSignature(byte[] signature, String trustProfileID,
+ String signatureLocationXpath) throws MOASigServiceException;
+
+ /**
+ * Verify a XML or XAdES signature
+ * <br><br>
+ * <i>This method only validates the first XML or XAdES signature if more than one signature exists</i>
+ *
+ * @param signature Serialized XML or XAdES signature
+ * @param trustProfileID Id of the Trust-Profile from MOA-Sig configuration
+ * @param verifyTransformsInfoProfileID {@link List} of XML Transformations that should be used for signature-verification
+ * @param signatureLocationXpath Xpath that points to location of Signature element
+ * @return @link {@link IXMLSignatureVerificationResponse}, or null if no signature was found
+ * @throws MOASigServiceException on signatue-verification error
+ */
+ IXMLSignatureVerificationResponse verifyXMLSignature(byte[] signature, String trustProfileID,
+ List<String> verifyTransformsInfoProfileID,
+ String signatureLocationXpath) throws MOASigServiceException;
+
} \ No newline at end of file