Research Article
An Attribute-Based Access Control Policy Retrieval Method Based on Binary Sequence
Algorithm 1
Policy retrieval algorithm based on binary identification.
| | Input: AAR | | | Output: the decision | | | //: Binary identification and encoding of AAR | | (1) | Init(AAR.policy_groupbinary); | | (2) | Init(AAR.policy_code); | | (3) | for(i = 0;i < AAR.policy_groupbinary.size(); i++) do | | (4) | if(AAR[i]) exist then | | (5) | AAR.policy_groupbinary.setposition(p) = 1; | | (6) | end if | | (7) | end for | | (8) | for(j = 0; j < AAR.policy_code.size(); j++) do | | (9) | if(AAR[j].attrvale) exit then | | (10) | a = getposition(AAR[j].attrvale); | | (11) | AAR.policycode.setposition(a) = 1; | | (12) | end if | | (13) | end for | | | //policy retrieval | | (14) | for(k = 0; k < Group.size; k++) do// | | (15) | if (Group[k].groupbinary&AAR.groupbinary) = = Group[k].groupbinary) then | | (16) | for( = 0; < Group[k].size; ++) do | | (17) | if (Group[k].ruleset[g].policycode&AAR.policy_code = = (Group[k].ruleset[g].policycode) then | | (18) | Dodecide(); | | (19) | break; | | (20) | end if; | | (21) | continue; | | (22) | end for; | | (23) | continue; | | (24) | end if | | (25) | end for |
|