Thanks for letting us know -- I updated my STS blog article with a link to this email.

Glen

On 06/06/2013 10:07 AM, patch_78 wrote:
Hi everyone,

Back to my original question, I found how to get the security token. Here it
is (for someone who has the same question as me)

Client client = ClientProxy.getClient(port);
Endpoint ep = client.getEndpoint();
String id = (String)ep.get(SecurityConstants.TOKEN_ID);
TokenStore store =
(TokenStore)ep.getEndpointInfo().getProperty(TokenStore.class.getName());
SecurityToken tok = store.getToken(id);
Element e = tok.getToken();

System.out.println("******************** TOKEN ********************");
System.out.println(DOM2Writer.nodeToString(e));
System.out.println("******************** TOKEN ********************");

patch



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Get-Security-Token-tp5728824p5728850.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to