From d631f72fe11298df42de10210067d3f14eaa290c Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 1 May 2012 14:52:08 +0000 Subject: [PATCH] SWS-761 - Add method to set digest algorithm for signature (WSS4J) --- .../ws/soap/security/wss4j/Wss4jSecurityInterceptor.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java index 6b02fc8c..f27c210a 100755 --- a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java +++ b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2011 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -279,6 +279,13 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl handler.setOption(WSHandlerConstants.SIG_ALGO, securementSignatureAlgorithm); } + /** + * Defines which signature digest algorithm to use. + */ + public void setSecurementSignatureDigestAlgorithm(String digestAlgorithm) { + handler.setOption(WSHandlerConstants.SIG_DIGEST_ALGO, digestAlgorithm); + } + public void setSecurementSignatureCrypto(Crypto securementSignatureCrypto) { handler.setSecurementSignatureCrypto(securementSignatureCrypto); }