最近想自定下tigase的authentication,一直糾結 java
tigase AuthRepository接口digestAuth plainAuth otherAuth 3個接口的使用說明; ide
發現調試一直走的是otherAuth,再糾結其餘的要不實現;最終找到2處說明; spa
1.http://www.tigase.org/content/sasl-custom-mechanisms-and-configuration 調試
說的含糊; code
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個以備拋棄 server
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.