Unsupported token excetion adding Username token to security header
-------------------------------------------------------------------

                 Key: RAMPART-26
                 URL: https://issues.apache.org/jira/browse/RAMPART-26
             Project: Rampart
          Issue Type: Bug
          Components: rampart-core
         Environment: Axis2
            Reporter: Elena Neroslavskaya


Modify ws-secureconversation sample 04 policy to include 
username token  by adding signedsupportingtoken to the policy.xml inside 
bootstrap policy. 

<sp:SignedSupportingTokens 
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";> 
<wsp:Policy> 
 <sp:UsernameToken 
<sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Once";
 
 /> 
</wsp:Policy> 
 </sp:SignedSupportingTokens> 
 
 But receinving exception below:

      [java] INFO: Deploying module : rampart-1.1 
      [java] org.apache.axis2.AxisFault: Unsupprted token in supporting 
 tokens; n 


Suggested Fix in BindingBuilder.addSignatureParts  method:

examining token hashmap by retrieving entryset and comparing Hashmap.Entry to 
Rahas Token. 
Line 388: 
       EntrySet entrySet = tokenMap.entryset(); 
        
Change it to retrieve actual values stored in HashMap  - it works. 

       Collection entrySet = tokenMap.values(); 
        


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to