On Tuesday, July 05, 2011 11:54:35 AM Sumit Pathak wrote:
> I have a question on how different inteceptor and different phase works in
> CXF.
> a) For example the PolicyBasedWSS4JOutInterceptor is supposed to be called
> at PRE_PROTOCOL phase.
> b) Where as the SecureConversationOutInterceptor, which handles getting
> security token, is called at PREPARE_SEND_ENDING phase, which i beleive
> happens after PRE_PROTOCOL PHASE.

I have the SecureConversationOutInterceptor living in the PREPARE_SEND phase.   

    public SecureConversationOutInterceptor() {
        super(Phase.PREPARE_SEND);
    }
 
which would be before the PRE_PROTOCOL phase.   Thus, that would answer the 
rest of this.

Dan



> c) With in PolicyBasedWSS4JOutInterceptor, handleMessage method, the
> appropriate binding  (transport,symmetric,asymetric) get handled.
> d) For symmetric binding the token created by
> SecureConversationOutInterceptor get used, but as this interceptor get
> called after PolicyBasedWSS4JOutInterceptor, how does it gets the token
> which needs to be used for signing and encrypting the message.
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-different-phase-and-interceptor-works-i
> n-CXF-tp4554321p4554321.html Sent from the cxf-user mailing list archive at
> Nabble.com.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to