@Service public class SecurityUtils extends Object
| Constructor and Description |
|---|
SecurityUtils() |
| Modifier and Type | Method and Description |
|---|---|
UserType |
currentUserType() |
static Optional<org.springframework.security.core.Authentication> |
getCurrentAuthentication() |
User |
getCurrentUser() |
boolean |
hasRole(String role) |
static boolean |
isCurrentUserAnonymous() |
static boolean |
isCurrentUserAuthenticated() |
public User getCurrentUser()
public UserType currentUserType()
public static boolean isCurrentUserAuthenticated()
public static boolean isCurrentUserAnonymous()
public static Optional<org.springframework.security.core.Authentication> getCurrentAuthentication()
public boolean hasRole(String role)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.