Web服务访问控制与安全保障
1. 访问控制的规范与定义
在Web服务的环境中,访问控制是保障系统安全和资源合理使用的关键。通过View Policy Language(VPL),可以对不同角色访问Web服务的权限进行精确的规范。
以下是一些VPL视图声明的示例:
view WishListFull controls WishList restricted to staff{
processAddRequest(businessGuid, , , ) if caller = businessGuid
processQueryRequest( businessGuid, , , ) if caller = businessGuid
processRemoveRequest( businessGuid, , , ) if caller = businessGuid
}
view WishListRestricted controls WishList restricted to customer{
processAddRequest( , ,customerGuid, ) if caller = customerGuid
processQueryRequest( , , customerGuid, ) if caller = customerGuid
processRemoveRequest( , ,customerGuid, ) if caller = customerGuid
}
view MovieSearch controls MovieSearch {
超级会员免费看
订阅专栏 解锁全文
7万+

被折叠的 条评论
为什么被折叠?



