Shiro 密碼的加密應用(六)

一.密碼的比對  (1.1) 按住UsernamePasswordToken到源代碼裏,設置斷點,進行調試.如下所示: (1.2)調試 (1.3)調試CredentialsMatcher接口 選中CredentialsMatcher接口,按住Ctrl+T能查看到有很多加密的方式 總結:  通過AuthenticatingRealm 的credentialsMatcher屬性來進行密碼比對哦!  
相關文章
相關標籤/搜索