token 是用户输入的,不是持久的保密的内容。
SecurityManager.login(token) 后 调用 Realm的doGetAuthenticationInfo()得到credential, SecurityManager调用其他辅助类,将token与credential对比(match)。
Token验证流程解析
本文深入探讨了用户输入Token的验证过程,重点讲解了SecurityManager如何使用Token调用Realm的doGetAuthenticationInfo()方法获取凭证,并通过辅助类进行Token与凭证的匹配对比。
token 是用户输入的,不是持久的保密的内容。
SecurityManager.login(token) 后 调用 Realm的doGetAuthenticationInfo()得到credential, SecurityManager调用其他辅助类,将token与credential对比(match)。
4128

被折叠的 条评论
为什么被折叠?