public final class AuthenticationHelper
extends java.lang.Object
| 构造器和说明 |
|---|
AuthenticationHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.security.core.Authentication |
getAuthentication() |
static ISecurityUser |
getSigninUser() |
static CustomUserDetails |
getUserAwareUserDetails() |
static boolean |
hasAuthority(org.springframework.security.core.Authentication authentication,
java.lang.String authority) |
public static org.springframework.security.core.Authentication getAuthentication()
public static ISecurityUser getSigninUser()
public static CustomUserDetails getUserAwareUserDetails()
public static boolean hasAuthority(org.springframework.security.core.Authentication authentication,
java.lang.String authority)
authentication - 授权信息authority - 权限