You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org> on 2008/03/17 14:19:25 UTC
[jira] Resolved: (RAMPART-26) Unsupported token excetion adding
Username token to security header
[ https://issues.apache.org/jira/browse/RAMPART-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nandana Mihindukulasooriya resolved RAMPART-26.
-----------------------------------------------
Resolution: Fixed
Fixed in the trunk
> 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.