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

📄 debug.jsp

📁 acegi构造安全的java系统
💻 JSP
字号:
<%@ page import="org.acegisecurity.context.SecurityContextHolder" %><%@ page import="org.acegisecurity.Authentication" %><%@ page import="org.acegisecurity.GrantedAuthority" %><%@ page import="org.acegisecurity.adapters.AuthByAdapter" %><%		Authentication auth = SecurityContextHolder.getContext().getAuthentication();		if (auth != null) { %>			Authentication object is of type: <%= auth.getClass().getName() %><BR><BR>			Authentication object as a String: <%= auth.toString() %><BR><BR>			Authentication object holds the following granted authorities:<BR><BR><%			GrantedAuthority[] granted = auth.getAuthorities();			for (int i = 0; i < granted.length; i++) { %>				<%= granted[i].toString() %> (getAuthority(): <%= granted[i].getAuthority() %>)<BR><%			}			if (auth instanceof AuthByAdapter) { %>				<BR><B>SUCCESS! Your container adapter appears to be properly configured!</B><BR><BR><%			} else { %>				<BR><B>SUCCESS! Your web filters appear to be properly configured!</B><BR><%			}		} else { %>			Authentication object is null.<BR>			This is an error and your Acegi Security application will not operate properly until corrected.<BR><BR><%		}%>

⌨️ 快捷键说明

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