public class SecurityUtils extends Object
安全工具类
| 构造器和说明 |
|---|
SecurityUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
getAuthentication()
获取Authentication
|
UserAccount |
getUser()
获取用户
|
UserAccount |
getUser(org.springframework.security.core.Authentication authentication)
获取用户
|
public org.springframework.security.core.Authentication getAuthentication()
public UserAccount getUser(org.springframework.security.core.Authentication authentication)
public UserAccount getUser()
Copyright © 2021 structure. All rights reserved.