diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2013-03-15 17:42:39 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2013-03-15 17:42:39 +0000 |
commit | ce5eab11f8d4f76498f8c80cc646489357394c7d (patch) | |
tree | eefef87b496208c19b5f144ce9c4d291a6324297 /bkucommon/src/main | |
parent | ed8302890d8ecf95779df87ef5de8845fb3d3171 (diff) | |
download | mocca-ce5eab11f8d4f76498f8c80cc646489357394c7d.tar.gz mocca-ce5eab11f8d4f76498f8c80cc646489357394c7d.tar.bz2 mocca-ce5eab11f8d4f76498f8c80cc646489357394c7d.zip |
Bump SignatureLayout header version to 1.1 when using X1.4
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1163 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java index baadcc7d..34e04b4d 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java @@ -137,8 +137,13 @@ public class HTTPBindingProcessorImpl extends AbstractBindingProcessor implement } public String getSignatureLayout() { - return configuration + String signatureLayout = configuration .getString(ConfigurationFactoryBean.SIGNATURE_LAYOUT_PROPERTY); + + if (getUseXAdES14() && signatureLayout.equals("1.0")) + signatureLayout = "1.1"; //bump SignatureLayout version to prevent PDF-AS from generating invalid signatures + + return signatureLayout; } public boolean getEnableStylesheetURL() { |