File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes WebService getting Digital Certificates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "WebService getting Digital Certificates" Watch "WebService getting Digital Certificates" New topic

WebService getting Digital Certificates

Mike Moreira

Joined: Apr 11, 2003
Posts: 4
Any one knows if there is anyway to get de Certificade in one WebService.

Just like when we can do in a Servlet, but to get this Certificade in a servlet, I�m using the Session or the Request object.

Boths that I cannot get in a WebService!

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Not sure if this answers your question, but if you use Axis, you can get at the underlying HttpServletRequest like this.

Or are you talking about using certificates in the context of WS-Security? Then you'd be looking at using a package like WSS4J, and the outline of what to do would be something like this.
[ March 21, 2006: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: WebService getting Digital Certificates
It's not a secret anymore!