http://stackoverflow.com/questions/6528724/xmppframework-ios-and-configuring-authentication-types ios
if ([self supportsDigestMD5Authentication]) { // send the digest data along with with password }