Hi Nizar,
Not sure what you exactly mean under service Callback, but you can use
following code in interceptors or service implementation to get client
principal:
Interceptor:
SecurityContext sc = message.get(SecurityContext.class);
Principal principal = sc.getUserPrincipal();
Service implementation:
@Resource
WebServiceContext webServiceContext;
SecurityContext sc =
webServiceContext.getMessageContext().get(SecurityContext.class);
Principal principal = sc.getUserPrincipal();
Reagrds,
Andrei.
-----Original Message-----
From: nizarrazin [mailto:[email protected]]
Sent: Mittwoch, 10. Oktober 2012 17:47
To: [email protected]
Subject: Extract client information in the service side
Hello everyone,
I have run a simple App using WSS4j and Apache CXF, I used x509 certificate to
sign message, and every thing works well.
Now I want to extract in service CallBack some informations (alias for
example) of the connecting client.
Is that possible, how to do that?
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/Extract-client-information-in-the-service-side-tp5716307.html
Sent from the cxf-user mailing list archive at Nabble.com.