You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2018/06/15 09:10:00 UTC

[jira] [Resolved] (CXF-6968) WS-Security policies placed on bus level are not registered

     [ https://issues.apache.org/jira/browse/CXF-6968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved CXF-6968.
--------------------------------------
    Resolution: Fixed

> WS-Security policies placed on bus level are not registered
> -----------------------------------------------------------
>
>                 Key: CXF-6968
>                 URL: https://issues.apache.org/jira/browse/CXF-6968
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>            Reporter: Kai Rommel
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>             Fix For: 3.2.5
>
>         Attachments: clientWSSviaPoliciesWithAtt_WSRM_4jira_ticket.xml
>
>
> Hi, I configured a WS-Consumer with WSS Interceptors successfully. Now I wanted to switch to WSS configuration via policies. I did this successfully for WSRM.
> My bus.xml is attached to the ticket.
> I am using CXF 3.2.0-SNAPSHOT.
> Within the .java class I am loading the config:
> SpringBusFactory bf = new SpringBusFactory();
> URL busFile = ClientWSSviaPolicies.class.getResource("clientWSSviaPoliciesWithAtt_WSRM_4jira_ticket.xml");
> Bus bus = bf.createBus(busFile.toString());
> BusFactory.setDefaultBus(bus);
> plus I am setting the needed properties
> ((BindingProvider)port).getRequestContext().put("ws-security.username", "wss");
> ((BindingProvider)port).getRequestContext().put("ws-security.callback-handler", "demo.ws_rm.client.CallBack");
> ((BindingProvider)port).getRequestContext().put("ws-security.signature.username", "wss");
> ((BindingProvider)port).getRequestContext().put("ws-security.signature.properties", "jks/client.properties");
> ((BindingProvider)port).getRequestContext().put("ws-security.encryption.username", "wss");
> ((BindingProvider)port).getRequestContext().put("ws-security.encryption.properties", "jks/client.properties");
> But the message which my client creates, is not signed nor encrypted.
> WSRM policies are active, WSS policies not. Any ideas?
> Best regards
> Kai



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)