📄 readme
字号:
Short example with access.There are 3 persons: "manager" (bank manager), "owner" and his "wife".They have appropriate sertificates: manager.pem, owner.pem, wife.pemUser Rights:AccessId:manager "m"GroupId:owner & wife "u"Object Access Policies:bank->create() "m" in /Access/Domain1bank->open() "ug" in /Access/Domain1hello->hello() "s" in /Access/Domain1account->deposit() "ug" in /Access/Accountsaccount->withdraw() "u" in /Access/Accountsaccount->balance() "ug" in /Access/Accountshello->hello() "" in /Access has no required rights in root domain, public useRights combinator - AnySecPolicyCombinator - UnionTo check how it works run server - rssThen clients - rcs"manager" can create account only, also he can say hello in /Access, but can'tsay hello in /Access/Domain1."owner" and "wife" can open account, deposit/withdraw money, see the balance,Files:config.cnf - describes poa -> domain mapping,access.cnf - describes object -> domain mapping,rights.cnf - describes user rightsP.S.Please look at the code in client.cc and content of config.cnf - changed!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -