我正在使用glassfish和jaas模块.
我以这种方式配置了我的web.xml.
<security-constraint>
<web-resource-collection>
<web-resource-name>ALL Page for admin</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>file</realm-name>
</login-config>
<security-role>
<description>Administrator</description>
<role-name>user</role-name>
</security-role>
Run Code Online (Sandbox Code Playgroud)
这意味着所有想要访问我的Web应用程序的用户都需要是组用户.
然后在glassfish控制台上我需要勾选选项:Configuration - > server-config - > security - > Default Principal To Role Mapping
我的问题是为什么我需要将此默认主体勾选到角色映射?我如何更改我的web.xml以避免勾选它?
非常感谢
卢瓦克
我正在使用JSF 2.0,java ee和glassfish编写应用程序.
我的用户界面是包含jsf的简单xhtml.
我希望我的用户登录并根据他们的权利在同一页面上显示不同的元素.
是否有可能使用jaas?
在此先感谢loic
我使用石英2d绘制饼图.
我使用图层在底部绘制饼图的反射.
我想在反射中添加一个透明的alpha渐变,使其变得越来越透明,直到它变得不可见.
有人有想法吗?
@EDIT:更多细节我的饼图在CGLayerRef中.
我首先将此图层绘制到CGContextRef.然后我做了
CGContextTranslateCTM(context, 0, rect.size.height);
CGContextScaleCTM(context, 1.0, -1.0);
Run Code Online (Sandbox Code Playgroud)
颠倒过来.
然后我画了一个新的时间
提前致谢,
卢瓦克