特定の認証メカニズムに対してiOSでxmppframeworkを設定する方法はありますか?xmppframework(iOS)と認証タイプの設定
- (void)xmppStream:(XMPPStream *)sender didNotAuthenticate:(NSXMLElement *)error
:私は悩み
http://code.google.com/p/xmppframeworkからサンプルiPhoneXMPPアプリでOpenFireサーバーへの接続を持っていると私は私のJID、パスワード、およびホスト名/ポートがすべて正しいことを知っているが、接続した後、私は時のコールバックを取得
対応するエラーと
:
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
最初のハンドシェイクの後には、私は
にデリゲートのコールバックを受け取ります3210XMPStreamクラスのauthenticateWithPasswordメソッド:
- (BOOL)authenticateWithPassword:(NSString *)password error:(NSError **)errPtr
{
...
// Reaches here and we get back a 'YES' because the server reports that one of the
// supported mechanisms by 'stream:features' is DIGEST-MD5
if ([self supportsDigestMD5Authentication])
{
// send the digest data along with with password
}
...
私はので、私は多分間違った質問をして、この新しいのようなものです。正しい方向を指してください。