You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sergey Beryozkin <sb...@gmail.com> on 2015/02/16 12:53:53 UTC

Re: Trust all implementation in apache cxf

I actually meant to CC to the users list too as it can help others

Cheers, Sergey
On 16/02/15 11:44, Sergey Beryozkin wrote:
> Hi,
>
> You can have HttpServletRequest injected (for example, as a JAX-RS
> Context) and access it as a standard
> "javax.servlet.request.X509Certificate" attribute.
>
>
> It is also available on the current CXF message, if you have a custom
> CXF interceptor then you can do
>
> import org.apache.cxf.security.transport.TLSSessionInfo;
>
> TLSSessionInfo info = message.get(TLSSessionInfo.class);
>
> and analyze it.
>
> HTH
>
> Cheers, Sergey
>
> On 16/02/15 06:24, Khare, Aparna wrote:
>> Hello Serqey,
>>
>>     I need some help implementing the trust all in Apache CXF
>>
>> I would want to get the peer certificate from my http client but could
>> not find any API.
>>
>> Can you please help with this.
>>
>> I’m little new to Apache CXF .
>>
>> Thanks,
>>
>> Aparna
>>
>