mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
SMACK-279: The XMPPConnection extends the new abstract Connection class
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11613 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
11a41e79ca
commit
127319a821
102 changed files with 1420 additions and 1194 deletions
|
@ -27,7 +27,6 @@ import org.jivesoftware.smack.packet.IQ;
|
|||
import javax.security.auth.callback.CallbackHandler;
|
||||
import javax.security.auth.callback.PasswordCallback;
|
||||
import javax.security.auth.callback.Callback;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Implementation of JEP-0078: Non-SASL Authentication. Follow the following
|
||||
|
@ -38,9 +37,9 @@ import java.io.IOException;
|
|||
*/
|
||||
class NonSASLAuthentication implements UserAuthentication {
|
||||
|
||||
private XMPPConnection connection;
|
||||
private Connection connection;
|
||||
|
||||
public NonSASLAuthentication(XMPPConnection connection) {
|
||||
public NonSASLAuthentication(Connection connection) {
|
||||
super();
|
||||
this.connection = connection;
|
||||
}
|
||||
|
@ -138,7 +137,7 @@ class NonSASLAuthentication implements UserAuthentication {
|
|||
return response.getTo();
|
||||
}
|
||||
else {
|
||||
return connection.serviceName + "/" + ((Authentication) response).getResource();
|
||||
return connection.getServiceName() + "/" + ((Authentication) response).getResource();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue