UsernamePasswordAuthenticationToken什么意思
时间: 2023-11-08 15:55:19 浏览: 64
UsernamePasswordAuthenticationToken是Spring Security中的一个类,用于封装用户的用户名和密码信息,以便进行身份验证。它是Authentication接口的一个具体实现类。这个类还可以通过实现supports()方法来告诉Spring Security它所支持的认证类型,以便在验证过程中正确地选择使用它进行验证。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [UsernamePasswordAuthenticationToken](https://blog.csdn.net/m0_38031406/article/details/82756953)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Spring Boot 2 + Spring Security 5 + JWT 的单页应用 Restful 解决方案](https://download.csdn.net/download/qq_29235677/87881070)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文