1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 00:59:39 +02:00

Use Jid (and subclasses) from jxmpp-jid

Fixes SMACK-634
This commit is contained in:
Florian Schmaus 2015-02-14 17:15:02 +01:00
parent 0ee2d9ed1e
commit 5bb4727c57
180 changed files with 1510 additions and 1032 deletions

View file

@ -54,7 +54,7 @@ public abstract class SASLJavaXMechanism extends SASLMechanism {
String[] mechanisms = { getName() };
Map<String, String> props = getSaslProps();
try {
sc = Sasl.createSaslClient(mechanisms, null, "xmpp", getServerName(), props,
sc = Sasl.createSaslClient(mechanisms, null, "xmpp", getServerName().toString(), props,
new CallbackHandler() {
@Override
public void handle(Callback[] callbacks) throws IOException,
@ -146,6 +146,6 @@ public abstract class SASLJavaXMechanism extends SASLMechanism {
}
protected String getServerName() {
return serviceName;
return serviceName.toString();
}
}

View file

@ -20,6 +20,7 @@ import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.SmackException.NotConnectedException;
import org.jivesoftware.smack.sasl.DigestMd5SaslTest;
import org.junit.Test;
import org.jxmpp.stringprep.XmppStringprepException;
public class SASLDigestMD5Test extends DigestMd5SaslTest {
@ -28,7 +29,7 @@ public class SASLDigestMD5Test extends DigestMd5SaslTest {
}
@Test
public void testDigestMD5() throws NotConnectedException, SmackException, InterruptedException {
public void testDigestMD5() throws NotConnectedException, SmackException, InterruptedException, XmppStringprepException {
runTest();
}
}