From 4a4302351610a5bcc24cd0e296a40232228c1b5f Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 28 Nov 2013 13:22:44 +0000 Subject: Add algorithm getters to AlgorithmMethodFactory git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1233 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../egiz/bku/slcommands/impl/xsect/AlgorithmMethodFactory.java | 7 +++++-- .../bku/slcommands/impl/xsect/AlgorithmMethodFactoryImpl.java | 10 ++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'bkucommon/src/main/java/at/gv/egiz') 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; } } -- cgit v1.2.3