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
In SecurityUtil.getKeyAlgo(String algo) algo is always null so returns the default SHA1 algorithm.
In the equivalent dotNet code I have to explicitly set binding.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Sha256. In CXF there is the property override "ws-security.asymmetric.signature.algorithm"
How can I override this in metro?
The text was updated successfully, but these errors were encountered:
Looking into the code it seems to me that the class:
com.sun.xml.wss.jaxws.impl.SecurityTubeBase - in the method - initializeOutgoingProcessingContext(Packet packet, boolean isSCMessage)
has a call that sets the algorthims to be used:
ctx.setAlgorithmSuite(getAlgoSuite(getBindingAlgorithmSuite(packet)));
and this seems to set the signing algorithm etc
While the class:
com.sun.xml.wss.jaxws.impl.SecurityClientTube - in the method - processClientRequestPacket(Packet packet)
appears to be missing an equivalent call (Should have):
((ProcessingContextImpl) ctx).setAlgorithmSuite(getAlgoSuite(getBindingAlgorithmSuite(packet)));
which means when the message is then processed the algorthim suite is then set to the defaults, rather than to the user set/wsdl values.
I haven't managed to get the metro suite to build to test if this fixes the issue as yet, but it looks likely to be a bug caused by the missing line of code.
On a WSDL containing
In SecurityUtil.getKeyAlgo(String algo) algo is always null so returns the default SHA1 algorithm.
In the equivalent dotNet code I have to explicitly set binding.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Sha256. In CXF there is the property override "ws-security.asymmetric.signature.algorithm"
How can I override this in metro?
The text was updated successfully, but these errors were encountered: