⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 switchuserauthoritychanger.java

📁 acegi构造安全的java系统
💻 JAVA
字号:
package org.acegisecurity.ui.switchuser;import java.util.List;import org.acegisecurity.Authentication;import org.acegisecurity.GrantedAuthority;import org.acegisecurity.userdetails.UserDetails;/** * Allows subclasses to modify the {@link GrantedAuthority} list that will be assigned to the principal * when they assume the identity of a different principal. * * <p>Configured against the {@link SwitchUserProcessingFilter}. * * @author Ben Alex * @version $Id$ * */public interface SwitchUserAuthorityChanger {    /**     * Allow subclasses to add or remove authorities that will be granted when in switch user mode.     *     * @param targetUser the UserDetails representing the identity being switched to     * @param currentAuthentication the current Authentication of the principal performing the switching     * @param authoritiesToBeGranted all {@link GrantedAuthority} instances to be granted to the user,     * excluding the special "switch user" authority that is used internally (guaranteed never null)     */    void modifyGrantedAuthorities(UserDetails targetUser, Authentication currentAuthentication, List authoritiesToBeGranted);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -