修改SecureFactory为PreferenceFactory