properties.setActions(actions);
// Set up the Key
KeyGenerator keygen = KeyGenerator.getInstance("DESede");
keygen.init(192);
SecretKey key = keygen.generateKey();
properties.setEncryptionKey(key);
String algorithm = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
properties.setEncryptionSymAlgorithm(algorithm);
// Set up the Key Wrapping Key
keygen = KeyGenerator.getInstance("DESede");
keygen.init(192);
SecretKey keyWrappingKey = keygen.generateKey();
String wrappingAlgorithm = "http://www.w3.org/2001/04/xmlenc#kw-tripledes";
properties.setEncryptionKeyTransportAlgorithm(wrappingAlgorithm);
properties.setEncryptionTransportKey(keyWrappingKey);
SecurePart securePart =