{
return(encrypter.encrypt(data));
}
catch (EncryptionOperationNotPossibleException e)
{
throw new PreferencesException("Encryption failed: " + e, e);
}
catch (UserAbortedEnteringPasswordException e)
{
throw new PreferencesException("User aborted encryption.", e);
}
}