摘要
阐述了一种典型的代理模式的工作原理,并分析了其在权限控制中的位置和作用,讨论了在代理模式实现过程中的一些问题,并对代理模式在权限控制应用中的一些不足进行了优化,包括使用动态代理实现更灵活的架构和用状态模式实现权限的管理并将其与代理模式组合使用。
This paper describes the mechanism and working principle of a typical Kind of proxy pattern, and analyses its role and function in privilege controlling. And as to the questions in the implementation of proxy pattern and the disadvantages of privelege controlling proxy this paper optimized the original design,including using dynamic to achieve a more flexible architecture and using the combination of proxy and state pattern which takes charge of the management of diversity of privileges.
出处
《计算机安全》
2009年第6期33-34,共2页
Network & Computer Security
关键词
代理模式
权限控制
动态代理
状态模式
单一化原则
proxy pattern
privilege contolling
dynamic proxy
state pattern
simplification principle