You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by sanjeevghimire <gs...@gmail.com> on 2014/04/22 23:24:32 UTC
issue configuring ws-security using apache cxf and private key
Hi All,
I am using Apache cxf 2.7.6 and trying to configure the security based on
username token, timestamp and signature. for the signautre part I only have
the private key which I am suppose to sign with.
how can i configure that in java using apache cxf to digital sign the
request.
can anybody tell me what has to be setup in teh outProps so that i can use
the private key.
Map<String, Object> outProps = new HashMap<String, Object>();
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor( outProps );
Endpoint cxfEP = client.getEndpoint();
cxfEP.getOutInterceptors().add(wssOut);
Sanjeev
--
View this message in context: http://cxf.547215.n5.nabble.com/issue-configuring-ws-security-using-apache-cxf-and-private-key-tp5743149.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: issue configuring ws-security using apache cxf and private key
Posted by Colm O hEigeartaigh <co...@apache.org>.
See here: https://cxf.apache.org/docs/ws-security.html
Colm.
On Tue, Apr 22, 2014 at 10:24 PM, sanjeevghimire <gs...@gmail.com>wrote:
> Hi All,
>
> I am using Apache cxf 2.7.6 and trying to configure the security based on
> username token, timestamp and signature. for the signautre part I only have
> the private key which I am suppose to sign with.
>
> how can i configure that in java using apache cxf to digital sign the
> request.
> can anybody tell me what has to be setup in teh outProps so that i can use
> the private key.
>
> Map<String, Object> outProps = new HashMap<String, Object>();
> WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor( outProps );
> Endpoint cxfEP = client.getEndpoint();
> cxfEP.getOutInterceptors().add(wssOut);
>
>
>
> Sanjeev
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/issue-configuring-ws-security-using-apache-cxf-and-private-key-tp5743149.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com