Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-410

SymmetricBinding policy with EncryptionToken and SignatureToken defined

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: rampart-core
    • Labels:
      None

      Description

      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)

      { throw new WSSPolicyException("Symmetric binding should have a Protection token or" + " both Signature and Encryption tokens defined"); }

      The if statement should be "if(encrToken == null && sigToken == null)".

      Is it possible to solve this issue in order to avoid this invalid exception?

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rneves Rodrigo Neves
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: