Class name for unix-like permission object

I have a class for storing unix-like permissions for a user, group, and others. In principle, this is a limited access control list, but I do not want to call it an ACL, because usually an ACL is something else.

The class looks basically like this:

class X {
  boolean userRead, userWrite, userExecute;
  boolean groupRead, groupWrite, groupExecute;
  boolean otherRead, otherWrite, otherExecute;
}

What to call such a class? What is Unix called?

+3
source share
4 answers

Often for such questions, the answer is in the question. I would call it the Permissionscomment above saying "Unix-like permissions for the user, group, and others."

+4
source

, , FilePermissions?

0

I would go with class permission_bits { }maybe in package unix.

0
source

Source: https://habr.com/ru/post/1732916/


All Articles