lixuwei / rbac-project Goto Github PK
View Code? Open in Web Editor NEWThis project forked from theinfamousrj/rbac-project
Role-Based Access Control project I'm working on while learning about the efficiency of HashMaps.
This project forked from theinfamousrj/rbac-project
Role-Based Access Control project I'm working on while learning about the efficiency of HashMaps.
RBAC Project: The Web makes information easily accessible to the public. However, in many cases the information should be accessed in a selective way. For example, credit card information should be accessible by a company employee that handles commercial transactions of the company. The same information should not be accessible by customers of the company. A widely‐used way to handle access control is role‐based access control (RBAC). In this project will implement the part of the so‐called Policy Decision Point (PDP) that decides whether a request for data access is granted based on a simplified RBAC model introduced by Damiani et al. (2002)*. User file format: UserId:Role,Role,Role,...,Role Classes: -UserId --int hashCode() --boolean equals(Object o) -UserRoles --File theFile --Map<String, ArrayList<String>> userRoles --void UserRoles() --void UserRoles(File theFile) --void addWithRoleList(String userid, ArrayList<String> roles) --void addWithRoleString(String userid, String role) --void remove(String userid) --boolean contains(String userid) --ArrayList<String> getValues(String userid) --int getSize() --void buildDictionary() -UserRolesTest --ArrayList<String> roleList --UserRoles roles --UserId userid --UserId userid2 --UserId userid3 --void shouldNotContainAnyUserIdWhenGivenNullRoleList() --void shouldContainCorrectUserIdAndRoleWhenGivenUserIdAndRoleAsAString() --void shouldContainCorrectUserIdAndRoleWhenGivenUserIdAndRoleAsAnArrayList() --void shouldContainOnlyOneUserIdWhenAddMultipleEqualUserIds() --void shouldHaveMultipleRolesForUserIdWhenAddedWithMultipleRoles() --void shouldNotContainAnyUserIdWhenGivenNullRoles() --void shouldContainThreeUserIdsWhenAddThreeUserIds() --void shouldRemoveCorrectUserIdAndRoleWhenGivenUserIdToRemove() --void shouldNotRemoveAnyUserIdWhenRemovingUserIdThatIsNotInDictionary() --void shouldHaveThreeUserIdsEachWithCorrectUserRoles() --void setup() --void addARoleToList(String roleStr)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.