WSSSecurityProperties securityProperties = new WSSSecurityProperties();
WSSConstants.Action[] actions = new WSSConstants.Action[]{WSSConstants.ENCRYPT};
securityProperties.setOutAction(actions);
Properties properties =
CryptoFactory.getProperties("transmitter-crypto-enc.properties", this.getClass().getClassLoader());
PasswordEncryptor passwordEncryptor =
new JasyptPasswordEncryptor(new CallbackHandlerImpl());
securityProperties.setEncryptionCryptoProperties(properties, passwordEncryptor);
securityProperties.setEncryptionUser("receiver");
InputStream sourceDocument = this.getClass().getClassLoader().getResourceAsStream("testdata/plain-soap-1.1.xml");