Hi,
in my app I must verificate a signature.
My VerifyWSS class (for verificate a signature) uses a WSS4JInInterceptor of
cxf in this way:
WSS4JInInterceptor inHandler = new WSS4JInInterceptor();
All properties (action, passwordCallbackClass, ...) are setting.
In VerifyWSS class I have a:
SOAPMessage saaj = ...
and
String requestXML = ... (SOAPMessageToString)
My SoapMessage (cxf message) for handleMessage is:
MessageImpl m = new MessageImpl();
ByteArrayInputStream bis = new ByteArrayInputStream(requestXML.getBytes());
m.setContent(InputStream.class, bis);
ExchangeImpl exchangeImpl = new ExchangeImpl();
exchangeImpl.setInMessage(m);
SoapMessage sm = new SoapMessage(m);
sm.setContent(SOAPMessage.class, saaj);
Now when I call a method inHandler.handleMessage(sm) I have this error:
DEBUG - (EnvelopeIdResolver.java:139) - exit engineResolve, result:
XMLSignatureInput/Element/[soapenv:Body: null] exclude null
comments:false/null
DEBUG - setElement("ds:Transform", "null")
WARN - Verification failed for URI "#id-2746929"
DEBUG - The Reference has Type
AVVERTENZA: org.apache.ws.security.WSSecurityException: The signature or
decryption was invalid
What's wrong this?
Thanks
--
View this message in context:
http://www.nabble.com/Verification-failed-with-CXF-and-WSS4J-tp23082568p23082568.html
Sent from the cxf-dev mailing list archive at Nabble.com.