当我们用
org.jivesoftware.smack.XMPPConnection.login(String username,String password)登录时,如果出现“SASLError using DIGEST-MD5: not-authorized”异常,这说明我们客户端没有开启SASL机制,在XMPP连接配置的时候,加上“SASLAuthentication.supportSASLMechanism("PLAIN",0);”这个支持SASL机制的方法就可以解决了。
openfire登录出现“SASLError using DIGEST-MD5: not-authorized”异常的解决
最新推荐文章于 2018-12-04 14:28:44 发布