課程
/后端開發(fā)
/Java
/Shiro安全框架入門
自定義realm認(rèn)證那,只匹配了用戶名在哪匹配的密碼啊
2019-06-11
源自:Shiro安全框架入門 3-5
正在回答
Realm中不是有密碼么(老師的demo???userMap存放用戶密碼?),然后customRealm中的UsernamePasswordToken token = new UsernamePasswordToken("Mark", "123456");,這個123456密碼與Map中密碼比較,代碼是通過SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo("Mark", password,"userRealm");進行比較的。
舉報
從零入門Shiro安全框架
1 回答自定義realm
2 回答如何在自定義的realm中獲取密碼
2 回答自定義realm中認(rèn)證過程是否有漏洞?
1 回答自定義Realm登錄用戶沒有角色和權(quán)限
2 回答此章節(jié)自定義Realm怎么檢驗用戶是否存在?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2019-06-13
Realm中不是有密碼么(老師的demo???userMap存放用戶密碼?),然后customRealm中的UsernamePasswordToken token = new UsernamePasswordToken("Mark", "123456");,這個123456密碼與Map中密碼比較,代碼是通過SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo("Mark", password,"userRealm");進行比較的。