You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to change the digest algorithm which is used for signatures in secured SOAP Messages (default is SHA1). WSS4J supports this, but it seems this is not included in the Wss4jSecurityInterceptor facade (2.0.4.RELEASE) from Spring WS Security.
The constant "org.apache.ws.security.handler.WSHandlerConstants .SIG_DIGEST_ALGO" allows it to set the digest algorithm which is used in WSS signatures.
I patched the following code into the Wss4jSecurityInterceptor class and was then able to change the digest algorithm:
public void setSecurementSignatureDigestAlgorithm(String digestAlgo) {
handler.setOption(WSHandlerConstants.SIG_DIGEST_AL GO, digestAlgo);
}
Oliver Mihatsch opened SWS-761 and commented
I wanted to change the digest algorithm which is used for signatures in secured SOAP Messages (default is SHA1). WSS4J supports this, but it seems this is not included in the Wss4jSecurityInterceptor facade (2.0.4.RELEASE) from Spring WS Security.
The constant "org.apache.ws.security.handler.WSHandlerConstants .SIG_DIGEST_ALGO" allows it to set the digest algorithm which is used in WSS signatures.
I patched the following code into the Wss4jSecurityInterceptor class and was then able to change the digest algorithm:
Context XML:
Affects: 2.0.4
Reference URL: http://forum.springsource.org/showthread.php?125244-Missing-method-to-set-digest-algorithm-for-signature-%28WSS4J%29
Referenced from: commits d631f72
The text was updated successfully, but these errors were encountered: