Class TenantBasedImpersonatePermissionVoter
java.lang.Object
com.flowable.core.spring.security.switchuser.TenantBasedImpersonatePermissionVoter
- All Implemented Interfaces:
ImpersonatePermissionVoter
public class TenantBasedImpersonatePermissionVoter
extends Object
implements ImpersonatePermissionVoter
- Author:
- Filip Hrisafov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAllowedToImpersonateUser
(Authentication authentication, UserDetails targetUser) Returnstrue
if the authenticated user is allowed to impersonate another user.
-
Constructor Details
-
TenantBasedImpersonatePermissionVoter
public TenantBasedImpersonatePermissionVoter()
-
-
Method Details
-
isAllowedToImpersonateUser
Description copied from interface:ImpersonatePermissionVoter
Returnstrue
if the authenticated user is allowed to impersonate another user.- Specified by:
isAllowedToImpersonateUser
in interfaceImpersonatePermissionVoter
- Parameters:
authentication
- the authentication that should be checkedtargetUser
- the user that is being impersonated- Returns:
true
if it is allowed to impersonate a user
-