logger.trace("Encrypting user profile with 256bit AES key from password. user id ='{}'", credentials.getUserId());
EncryptedNetworkContent encryptedUserProfile = H2HEncryptionUtil.encryptAES(entry.getUserProfile(),
userProfileEncryptionKey);
encryptedUserProfile.setBasedOnKey(entry.getUserProfile().getVersionKey());
encryptedUserProfile.generateVersionKey();
IParameters parameters = new Parameters().setLocationKey(credentials.getProfileLocationKey())
.setContentKey(H2HConstants.USER_PROFILE).setVersionKey(encryptedUserProfile.getVersionKey())
.setData(encryptedUserProfile).setProtectionKeys(entry.getUserProfile().getProtectionKeys())
.setTTL(entry.getUserProfile().getTimeToLive());