Interface CurrentUserProxy
- All Known Implementing Classes:
CurrentUserProxyImpl
Deprecated.
Provides access to the authenticated user attached to the request or current thread.
Requires the authenticated principal to be of type
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.- See Also:
-
CurrentSecurityPrincipalProxy
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
Deprecated.getId()
Deprecated.getUser()
Deprecated.Deprecated.boolean
hasAuthority
(String authority) Deprecated.boolean
hasAuthority
(org.springframework.security.core.GrantedAuthority authority) Deprecated.boolean
hasPermission
(Permission permission) Deprecated.boolean
hasPermission
(String name) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
isMemberOf
(Group group) Deprecated.
-
Method Details
-
getId
Long getId()Deprecated. -
getEmail
String getEmail()Deprecated. -
getUsername
String getUsername()Deprecated. -
isMemberOf
Deprecated. -
hasRole
Deprecated. -
hasRole
Deprecated. -
hasPermission
Deprecated. -
hasPermission
Deprecated. -
hasAuthority
Deprecated. -
hasAuthority
boolean hasAuthority(org.springframework.security.core.GrantedAuthority authority) Deprecated. -
getUser
User getUser()Deprecated. -
isAuthenticated
boolean isAuthenticated()Deprecated.
-
CurrentSecurityPrincipalProxy
instead