You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anna Krajewska <a....@wasko.pl> on 2005/10/06 13:26:55 UTC
How to create BinarySecurityToken from X509Certificate?
Hi
Does anybody know that?
Please!!! help me - I can't find it anywhere.
ania
Re: How to create BinarySecurityToken from X509Certificate?
Posted by Anna Krajewska <a....@wasko.pl>.
I'm afraid it's not what I want. I want to create a BinarySecurityToken for
the message that is outgoing from my message. I don't know what that code
that you have sent is doing.
----- Original Message -----
From: "olivier GUIDER" <ol...@ign.fr>
To: <ax...@ws.apache.org>; "Anna Krajewska" <a....@wasko.pl>
Sent: Thursday, October 06, 2005 1:47 PM
Subject: Re: How to create BinarySecurityToken from X509Certificate?
> HttpServletRequest request =
>
>
(HttpServletRequest)MessageContext.getCurrentContext().getProperty(HTTPConst
> ants.MC_HTTP_SERVLETREQUEST);
>
> X509Certificate[] certificate =
>
>
(X509Certificate[])request.getAttribute("javax.servlet.request.X509Certifica
> te");
>
> certificate[0] is the end of the chain.
> certificate[0].getSubjectDN();
>
> I found this code...searching something else...but i don't use it....
Re: How to create BinarySecurityToken from X509Certificate?
Posted by olivier GUIDER <ol...@ign.fr>.
HttpServletRequest request =
(HttpServletRequest)MessageContext.getCurrentContext().getProperty(HTTPConst
ants.MC_HTTP_SERVLETREQUEST);
X509Certificate[] certificate =
(X509Certificate[])request.getAttribute("javax.servlet.request.X509Certifica
te");
certificate[0] is the end of the chain.
certificate[0].getSubjectDN();
I found this code...searching something else...but i don't use it....
----- Original Message -----
From: "Anna Krajewska" <a....@wasko.pl>
To: "axis-user" <ax...@ws.apache.org>
Sent: Thursday, October 06, 2005 1:26 PM
Subject: How to create BinarySecurityToken from X509Certificate?
> Hi
>
> Does anybody know that?
> Please!!! help me - I can't find it anywhere.
>
> ania
>
Re: How to create BinarySecurityToken from X509Certificate?
Posted by Guy Rixon <gt...@ast.cam.ac.uk>.
Use WSS4J. If you configure the handler WSDoAllSender to need such a token,
e.g. as part of a signature, then it will make one for you from a key-store
that you supply. If you pick apart the WSS4J package you will probably find
the classes that generated the binary token XML from Java objects.
On Thu, 6 Oct 2005, Anna Krajewska wrote:
> Hi
>
> Does anybody know that?
> Please!!! help me - I can't find it anywhere.
>
> ania
>
Guy Rixon gtr@ast.cam.ac.uk
Institute of Astronomy Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523