当使用asmack登陆jabberd2时.会发生错误:
SASL authentication failed using mechanism DIGEST-MD5
意思大概是登陆时使用了DIGEST-MD5身份验证机制.而jabberd2服务器并没有开启.所以会发生错误.
解决办法是在login之前加入:SASLAuthentication.supportSASLMechanism("PLAIN", 0);
当使用asmack尝试登陆jabberd2服务器时,若服务器未开启DIGEST-MD5身份验证机制,会遇到SASL authentication failed错误。解决方法是加入SASLAuthentication.supportSASLMechanism(PLAIN0)代码以启用机制。
当使用asmack登陆jabberd2时.会发生错误:
SASL authentication failed using mechanism DIGEST-MD5
意思大概是登陆时使用了DIGEST-MD5身份验证机制.而jabberd2服务器并没有开启.所以会发生错误.
解决办法是在login之前加入:SASLAuthentication.supportSASLMechanism("PLAIN", 0);
357

被折叠的 条评论
为什么被折叠?