I think your best bet is to write an interceptor that runs after the
WSS4JOutInterceptor, which grabs the security header + appends the
EncryptedData Element retrieved from the first request to it.

Colm.


On Thu, Dec 5, 2013 at 6:39 AM, qatada.abbas <[email protected]> wrote:

> first call to STS
>
> Below is my second call that i have to make but just cant figure out what
> interceptor to use to add the security header with the token data that was
> received in the first call
>
>                 bus = BusFactory.getDefaultBus();
>
>                 features = new ArrayList<AbstractFeature>();
>                 features.add(new WSAddressingFeature());
>                 features.add(new LoggingFeature());
>                 for(AbstractFeature feature : features) {
>                    feature.initialize(bus);
>                 }
>
>             client = new STSClient(bus);
>
> client.setLocation("
> https://www.deewr.gov.au/adfs/services/trust/13/issuedtokenmixedsymmetricbasic256
> ");
>             client.setRequiresEntropy(false);
>
>
>
>             interceptorList= new ArrayList();
>
>
>             client.setOutInterceptors(interceptorList);
>
>             client.setEnableAppliesTo(true);
>             client.getProperties().putAll(properties);
>             client.setFeatures(features);
>             client.setSoap12();
>
>             client.setWspNamespace(null);
>
> client.setAddressingNamespace("http://www.w3.org/2005/08/addressing";);
>             client.setTrust(new Trust13(SP11Constants.INSTANCE));
>             client.requestSecurityToken("https://ecsn.gov.au/ESC/";);
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-STSClient-tp5737337p5737374.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to