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

📄 webauthorizer.java

📁 一个很好的开源项目管理系统源代码
💻 JAVA
字号:
package net.java.workeffort.webapp.security;import net.java.workeffort.infrastructure.security.AuthorizationException;import net.java.workeffort.infrastructure.security.ISecurityProfile;/** * Authorization manager for the Web (urls) * @author Antony Joseph */public class WebAuthorizer implements IWebAuthorizer {    /**     * Checks whether user has authorization for the url path.     */    public void authorize(ISecurityProfile securityProfile, String path)            throws AuthorizationException {        if (securityProfile.getAccessDecision(path, "ACCESS") == ISecurityProfile.DENIED) {            throw new AuthorizationException("Authorization failed. partyCd="                    + securityProfile.getPartyCd() + " target=" + path                    + " operation=ACCESS");        }    }}

⌨️ 快捷键说明

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