You can get a handle on the request object from the MessageContext. Anywhere
within your service method you can call

                MessageContext mc = MessageContext.getCurrentContext();
                ServletRequest req =
(ServletRequest)mc.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
                X509Certificate[] cert =
(X509Certificate[])req.getAttribute("javax.servlet.request.X509Certificate")
;

And that should give you what you need.

-----Original Message-----
From: Ivan Venuti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 5:05 AM
To: [EMAIL PROTECTED]
Subject: X509 Client Certificates

Hi,

I'd like to retrieve the X509 certificates from the client request.
WIth the ServletRequest I simply get the attribute:

X509Certificate[] cert = (X509Certificate[])
        req.getAttribute("javax.servlet.request.X509Certificate");

How can I do it in Axis?

I'd like to develop an Handler to achieve this.
Anyone has done it before?

Thanks a lot for any tip!

-- Ivan

Reply via email to