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
Constructors Constructor Description TenantBasedImpersonatePermissionVoter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllowedToImpersonateUser(Authentication authentication, UserDetails targetUser)Returnstrueif the authenticated user is allowed to impersonate another user.
-
-
-
Method Detail
-
isAllowedToImpersonateUser
public boolean isAllowedToImpersonateUser(Authentication authentication, UserDetails targetUser)
Description copied from interface:ImpersonatePermissionVoterReturnstrueif the authenticated user is allowed to impersonate another user.- Specified by:
isAllowedToImpersonateUserin interfaceImpersonatePermissionVoter- Parameters:
authentication- the authentication that should be checkedtargetUser- the user that is being impersonated- Returns:
trueif it is allowed to impersonate a user
-
-