Interface ImpersonatePermissionVoter
-
- All Known Implementing Classes:
AuthorityBasedImpersonatePermissionVoter
public interface ImpersonatePermissionVoterA voter which checks whether a user is allowed to impersonate another user or not.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAllowedToImpersonateUser(Authentication authentication)Returnstrueif the authenticated user is allowed to impersonate another user.
-
-
-
Method Detail
-
isAllowedToImpersonateUser
boolean isAllowedToImpersonateUser(Authentication authentication)
Returnstrueif the authenticated user is allowed to impersonate another user.- Parameters:
authentication- the authentication that should be checked- Returns:
trueif it is allowed to impersonate a user
-
-