CurrentSecurityPrincipalProxy instead@Deprecated public interface CurrentUserProxy
User, calls to isAuthenticated() should
return false if that is not the case.
Unless you are only interested in User authentications,
favour the more generic CurrentSecurityPrincipalProxy instead.CurrentSecurityPrincipalProxy| Modifier and Type | Method and Description |
|---|---|
String |
getEmail()
Deprecated.
|
Long |
getId()
Deprecated.
|
User |
getUser()
Deprecated.
|
String |
getUsername()
Deprecated.
|
boolean |
hasAuthority(org.springframework.security.core.GrantedAuthority authority)
Deprecated.
|
boolean |
hasAuthority(String authority)
Deprecated.
|
boolean |
hasPermission(Permission permission)
Deprecated.
|
boolean |
hasPermission(String name)
Deprecated.
|
boolean |
hasRole(Role role)
Deprecated.
|
boolean |
hasRole(String name)
Deprecated.
|
boolean |
isAuthenticated()
Deprecated.
|
boolean |
isMemberOf(Group group)
Deprecated.
|
Long getId()
String getEmail()
String getUsername()
boolean isMemberOf(Group group)
boolean hasRole(String name)
boolean hasRole(Role role)
boolean hasPermission(String name)
boolean hasPermission(Permission permission)
boolean hasAuthority(String authority)
boolean hasAuthority(org.springframework.security.core.GrantedAuthority authority)
User getUser()
boolean isAuthenticated()
Copyright © 2020. All rights reserved.