[
https://issues.apache.org/jira/browse/RAMPART-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993405#comment-12993405
]
Ainar Maanus commented on RAMPART-225:
--------------------------------------
So is there a reason why this fix is not included in rampart-core 1.5.1 ?
> 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: Samisa Abeysinghe
> Fix For: 1.5.1
>
> Attachments: RAMPART-225.diff, policy-pwd-encrypted.xml,
> policy-working.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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]