1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

GSSAPI work by Jay Kline (SMACK-218).

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8155 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2007-05-02 23:11:10 +00:00 committed by matt
parent 6150c72ca7
commit eb56f8a557
3 changed files with 263 additions and 2 deletions

View file

@ -27,6 +27,7 @@ import org.jivesoftware.smack.packet.Session;
import org.jivesoftware.smack.sasl.SASLAnonymous;
import org.jivesoftware.smack.sasl.SASLMechanism;
import org.jivesoftware.smack.sasl.SASLPlainMechanism;
import org.jivesoftware.smack.sasl.SASLGSSAPIMechanism;
import java.io.IOException;
import java.lang.reflect.Constructor;
@ -79,7 +80,8 @@ public class SASLAuthentication implements UserAuthentication {
static {
// Register SASL mechanisms supported by Smack
registerSASLMechanism(0, "PLAIN", SASLPlainMechanism.class);
registerSASLMechanism(0, "GSSAPI", SASLGSSAPIMechanism.class);
registerSASLMechanism(1, "PLAIN", SASLPlainMechanism.class);
}
/**