Affects Version/s: 1.6.2
Fix Version/s: None
When trying to use a SymmetricBinding policy with EncryptionToken and SignatureToken defined in policy.xml file, the following exception is thrown by rampart:
"Caused by: org.apache.ws.secpolicy.WSSPolicyException: Symmetric binding should have a Protection token or both Signature and Encryption tokens defined"
In method "symmetricBinding" of class "RampartPolicyBuilder.java" of rampart-core, there is the following if statement:
Assertion encrToken = binding.getEncryptionToken();
Assertion sigToken = binding.getSignatureToken();
if (token == null && sigToken == null)
The if statement should be "if(encrToken == null && sigToken == null)".
Is it possible to solve this issue in order to avoid this invalid exception?