Hi, I assume that you inherit from AbstractUsernameTokenAuthenticatingInterceptor, is that correct? The reason why message1.getContent(List.class) returns null is that your interceptor is invoked on PRE_PROTOCOL phase and message is not unmarshaled at this time. You can try message.getContent(SOAPMessage.class) to access SAAJ message. Use message.getContentFormats() to determine in which form message is currently available.
Btw: why you need message object to verify username/password? Regards, Andrei. > -----Original Message----- > From: Faz [mailto:[email protected]] > Sent: Donnerstag, 9. Januar 2014 18:33 > To: [email protected] > Subject: Message Object in UsernameTokenValidator > > > Hi, > > I'm trying to procure the incoming message object inside the > verifyPlaintextPassword method, but unfortunately am not able to get that. > By incoming message I mean the service parameters that is set i the web > services wsdl file. > > Have tried the following but nothing seems to work, > > > the requestList above seems to be null always, but when I do the same in the > HandleMessage() of any interceptors it works fine. > > PLEASE let me know like how can i gain access to this object in the validator > class. > CXF version :2.6.9 > Thanks > > > > -- > View this message in context: http://cxf.547215.n5.nabble.com/Message- > Object-in-UsernameTokenValidator-tp5738424.html > Sent from the cxf-user mailing list archive at Nabble.com.
