KeyInfo ekKI = (com.sun.xml.ws.security.opt.crypto.dsig.keyinfo.KeyInfo) result.getKeyInfo();
context.setExtraneousProperty("SecretKey", dataProtectionKey);
//Truncating 20 byte Key to 16 byte Key;
byte[] secretKey = untBinding.getSecretKey().getEncoded();
PasswordDerivedKey pdk = new PasswordDerivedKey();
Key dpKey = pdk.generate16ByteKeyforEncryption(secretKey);
ek = (SecurityHeaderElement) elementFactory.createEncryptedKey(context.generateID(), context.getAlgorithmSuite().getSymmetricKeyAlgorithm(), ekKI, dpKey, dataProtectionKey);
context.getSecurityHeader().add(ek);
ekId = ek.getId();
ekCache.put(unTokenId, ekId);
context.addToCurrentSecretMap(ekId, dataProtectionKey);