tigase AuthRepository(digest plain otherAuth)

最近想自定下tigase的authentication,一直纠结

tigase AuthRepository接口digestAuth plainAuth otherAuth 3个接口的使用说明;

发现调试一直走的是otherAuth,再纠结其他的要不实现;最终找到2处说明;


1.http://www.tigase.org/content/sasl-custom-mechanisms-and-configuration

说的含糊;

GENERAL REMARKS
JabberIqAuth used for non-SASL authentication mechanisms uses the same callback as the SASL mechanisms.

Methods '*auth*' in '*Repository' interfaces will be deprecated. These interfaces will be treated as user details providers only. There will be new methods available which will allow for additional login operations on the database such as last successful login recording and so on….



最终在5.1的release说明里,找到了说法;全部走otherAuth,其他2个以备抛弃

http://www.tigase.org/content/tigase-xmpp-server-510-beta-3

Code refactored and deprecated methods for digestAuth and plainAuth. They are being replaced with otherAuth which handles now all authentication requests. This is to make the code simpler to maintain, simplify the API and make it easier to extend authentication protocols with custom ones.




你可能感兴趣的:(tigase AuthRepository(digest plain otherAuth))