diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-05-17 14:04:25 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-05-17 14:04:25 +0000 |
commit | df1f2ef69011c6754030fa22a42c080e31b99b03 (patch) | |
tree | ccd3f2b9a191fc83d95d6ccce6c74ffab90fc6c7 /bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java | |
parent | 379b5636bfe4919c83c185964ae552e442b8d28c (diff) | |
download | mocca-df1f2ef69011c6754030fa22a42c080e31b99b03.tar.gz mocca-df1f2ef69011c6754030fa22a42c080e31b99b03.tar.bz2 mocca-df1f2ef69011c6754030fa22a42c080e31b99b03.zip |
Enable switching to SHA-2 mode via config parameter
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@935 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java index 750c2838..55bfa3ce 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureCommandFactory.java @@ -32,20 +32,19 @@ public class CreateXMLSignatureCommandFactory extends AbstractSLCommandFactory { private ConfigurationFacade configurationFacade = new ConfigurationFacade(); private class ConfigurationFacade implements MoccaConfigurationFacade { - public static final String VALIDATE_HASH_DATA_INPUTS = "ValidateHashDataInputs"; - + public boolean getValidateHashDataInputs() { return configuration.getBoolean(VALIDATE_HASH_DATA_INPUTS, true); } - } - + @Override public SLCommand createSLCommand(JAXBElement<?> element) throws SLCommandException { CreateXMLSignatureCommandImpl command = new CreateXMLSignatureCommandImpl(); command.init(element); + command.setConfiguration(configuration); return command; } |