1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 18:29:45 +02:00

Re-add the login(String, String, String) method

This commit is contained in:
Florian Schmaus 2014-12-18 14:01:31 +01:00
parent d081055312
commit 4b77d00e91
5 changed files with 58 additions and 51 deletions

View file

@ -223,11 +223,8 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
}
@Override
protected void loginNonAnonymously()
protected void loginNonAnonymously(String username, String password, String resource)
throws XMPPException, SmackException, IOException {
String password = config.getPassword();
String resource = config.getResource();
String username = config.getUsername();
if (saslAuthentication.hasNonAnonymousAuthentication()) {
// Authenticate using SASL
if (password != null) {