Interface ImpersonatePermissionVoter
- All Known Implementing Classes:
AuthorityBasedImpersonatePermissionVoter,TenantBasedImpersonatePermissionVoter
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 TypeMethodDescriptionbooleanisAllowedToImpersonateUser(Authentication authentication, UserDetails targetUser) Returnstrueif the authenticated user is allowed to impersonate another user.
-
Method Details
-
isAllowedToImpersonateUser
Returnstrueif the authenticated user is allowed to impersonate another user.- Parameters:
authentication- the authentication that should be checkedtargetUser- the user that is being impersonated- Returns:
trueif it is allowed to impersonate a user
-