Interface ImpersonatePermissionVoter
- All Known Implementing Classes:
AuthorityBasedImpersonatePermissionVoter
public interface ImpersonatePermissionVoter
A voter which checks whether a user is allowed to impersonate another user or not.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and Type Method Description boolean
isAllowedToImpersonateUser(org.springframework.security.core.Authentication authentication)
Returnstrue
if the authenticated user is allowed to impersonate another user.
-
Method Details
-
isAllowedToImpersonateUser
boolean isAllowedToImpersonateUser(org.springframework.security.core.Authentication authentication)Returnstrue
if the authenticated user is allowed to impersonate another user.- Parameters:
authentication
- the authentication that should be checked- Returns:
true
if it is allowed to impersonate a user
-