Interface ImpersonatePermissionVoter

    • Method Detail

      • isAllowedToImpersonateUser

        boolean isAllowedToImpersonateUser​(Authentication authentication,
                                           UserDetails targetUser)
        Returns true if the authenticated user is allowed to impersonate another user.
        Parameters:
        authentication - the authentication that should be checked
        targetUser - the user that is being impersonated
        Returns:
        true if it is allowed to impersonate a user