powered by Jive Software

java.lang.IllegalStateException: Changing password over insecure connection when i changepassword

smack version:4.3.4
openfire version 4.4.4

fail to changepassword,throw the follow exception:
java.lang.IllegalStateException: Changing password over insecure connection.

follow as the code to change password:
AccountManager accountManager = AccountManager.getInstance(mConnection);
accountManager.changePassword(newPassword);

AccountManager.sensitiveOperationOverInsecureConnectionDefault(true);

1 Like

thank you very much