If it's still a problem please consider creating a test-case that we can use to reproduce the issue.
Colm. On Wed, Oct 28, 2020 at 2:21 PM Miha Zoubek <mzou...@gmail.com> wrote: > Hello > > so my error is this: > > HelloImplService has thrown exception, unwinding now > org.apache.cxf.interceptor.Fault: Message part { > http://www.w3.org/2001/04/xmlenc#}EncryptedData was not recognized. > (Does it exist in service WSDL?) > > Which is I guess due to my configuration of cfx part for deceyption. > Signature, Timestamp are working perfectly. > > public WSS4JStaxInInterceptor wss4JStaxInInterceptor() throws Exception { > > WSSSecurityProperties inProperties = new WSSSecurityProperties(); > //inProperties.addAction(WSSConstants.USERNAMETOKEN); > inProperties.addAction(WSSConstants.TIMESTAMP); > inProperties.addAction(WSSConstants.SIGNATURE); > inProperties.addAction(WSSConstants.ENCRYPTION); > inProperties.setEncryptionUser("xxx"); > > > inProperties.loadDecryptionKeystore(this.getClass().getClassLoader().getResource("\"C:\\\\Users\\\\miha_\\\\OneDrive\\\\Dokumenti\\\\Job\\\\Lj\\\\Spring\\\\demo\\\\src\\\\main\\\\resources\\\\xxxx.jks"),"softnet_keystore_passwordo".toCharArray());; > inProperties.setMustUnderstand(false); > > > inProperties.loadSignatureKeyStore(this.getClass().getClassLoader().getResource("\"C:\\\\Users\\\\miha_\\\\OneDrive\\\\Dokumenti\\\\Job\\\\Lj\\\\Spring\\\\demo\\\\src\\\\main\\\\resources\\\\xxxx.jks"),"softnet_keystore_passwordo".toCharArray()); > inProperties.setSignatureUser("cbd"); > > //inProperties.setSignatureVerificationCryptoProperties(wss4jInProperties()); > > > > //inProperties.setUsernameTokenPasswordType(WSSConstants.UsernameTokenPasswordType.PASSWORD_DIGEST); > inProperties.setCallbackHandler(new > ClientKeystorePasswordCallback()); > > WSS4JStaxInInterceptor wss4JStaxInInterceptor = new > WSS4JStaxInInterceptor(inProperties); > > return wss4JStaxInInterceptor; > > } > > I guess i will need also to provide secret for private key which is in jks > (i have now only provided password to access jks store). > > thank you > miha >