按照如下步骤改变安全角色。
创建名为BPEUser的安全角色。
从安全角度出发,拒绝所有策略是最安全的。
From a security standpoint, the deny all policy is the most secure one.
添加安全角色administrator。
测试调用者是否有指定的安全角色。
(StringroleName) Test if the caller has a given security role.
测试调用者是否有指定的安全角色。
从安全角度来看,这也许不太明智。
然而,以粗体显示的安全角色是这里讨论的重点。
role-name元素指定安全角色的名称。
The role-name element specifies the name of the security role.
对于每个安全角色,必须声明相应的主体类及其名称。
For each security role, a corresponding principal class and its name must be declared.
我们对每个要映射的安全角色使用一个role元素。
遗憾的是,从严格的安全角度而言,答案是“否定的”。
Unfortunately, the answer is "no" for security in a strict sense.
isUserInRole:此方法判定远程用户是否具有特定的安全角色。
IsUserInRole: This method determines whether a remote user is in a specific security role.
isUserInRole:此方法判定远程用户是否具有特定的安全角色。
IsUserInRole: This method determines whether a remote user is in a specific security role.
应用推荐