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 "Amila Jayasekara (JIRA)" <ji...@apache.org> on 2010/05/04 10:39:56 UTC
[jira] Commented: (RAMPART-225) SupportingToken UsernameToken is
always encrypted
[ https://issues.apache.org/jira/browse/RAMPART-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863718#action_12863718 ]
Amila Jayasekara commented on RAMPART-225:
------------------------------------------
I am looking into this issue.
AmilaJ
> SupportingToken UsernameToken is always encrypted
> -------------------------------------------------
>
> Key: RAMPART-225
> URL: https://issues.apache.org/jira/browse/RAMPART-225
> Project: Rampart
> Issue Type: Bug
> Components: rampart-core
> Affects Versions: 1.4
> Reporter: Diego Tognola
> Assignee: Ruchith Udayanga Fernando
> Attachments: policy-pwd-encrypted.xml
>
>
> If no encryption is specified in the policy file and UsernameToken is used as supporting token, then this token is always encrypted. org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(RampartMessageData, SupportingToken) does not check if UsernameToken is an encrypted token and unconditionally adds it to the encryptedTokensIdList.
> This can be easily fixed by modifying line 383 (as per src release 1.4) from
> encryptedTokensIdList.add(utBuilder.getId());
> to
>
> if (suppTokens.isEncryptedToken()) {
> encryptedTokensIdList.add(utBuilder.getId());
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.