diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2013-11-28 13:22:44 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2013-11-28 13:22:44 +0000 |
commit | 4a4302351610a5bcc24cd0e296a40232228c1b5f (patch) | |
tree | 7e10a14d64ede4105c1a18a490ffb1b04ffbfe7e /bkucommon/src/main/java/at/gv/egiz | |
parent | 1bb3ab8458c1199d17d3a2c39f86086a834879a5 (diff) | |
download | mocca-4a4302351610a5bcc24cd0e296a40232228c1b5f.tar.gz mocca-4a4302351610a5bcc24cd0e296a40232228c1b5f.tar.bz2 mocca-4a4302351610a5bcc24cd0e296a40232228c1b5f.zip |
Add algorithm getters to AlgorithmMethodFactory
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1233 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz')
2 files changed, 15 insertions, 2 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactory.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactory.java index 5dd92786..d2484b56 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactory.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactory.java @@ -82,6 +82,9 @@ public interface AlgorithmMethodFactory { */
public CanonicalizationMethod createCanonicalizationMethod(
SignatureContext signatureContext) throws NoSuchAlgorithmException,
- InvalidAlgorithmParameterException;
-
+ InvalidAlgorithmParameterException; + + public String getSignatureAlgorithmURI(); + + public String getDigestAlgorithmURI(); }
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactoryImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactoryImpl.java index a3f11920..317e9e1f 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactoryImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactoryImpl.java @@ -175,6 +175,16 @@ public class AlgorithmMethodFactoryImpl implements AlgorithmMethodFactory { throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
return new STALSignatureMethod(signatureAlgorithmURI, signatureMethodParameterSpec);
+ } + + @Override + public String getSignatureAlgorithmURI() { + return signatureAlgorithmURI; + } + + @Override + public String getDigestAlgorithmURI() { + return digestAlgorithmURI; }
}
|