struct Libcrown::Group
- Libcrown::Group
- Struct
- Value
- Object
Overview
Represents a password line of /etc/group
.
Defined in:
group.crConstructors
-
.new(name : String, users : Set(String) = Set(String).new, password : PasswordState = PasswordState::Hashed)
Creates a new group.
Instance Method Summary
-
#name : String
Unique group name.
-
#name=(name : String) : String
Unique group name.
-
#password : PasswordState
Generally unused empty/blank password (set to
PasswordState::Hashed
). -
#password=(password : PasswordState)
Generally unused empty/blank password (set to
PasswordState::Hashed
). -
#users : Set(String)
Users who are members of the group.
-
#users=(users : Set(String))
Users who are members of the group.
Constructor Detail
def self.new(name : String, users : Set(String) = Set(String).new, password : PasswordState = PasswordState::Hashed)
#
Creates a new group.
Instance Method Detail
def password : PasswordState
#
Generally unused empty/blank password (set to PasswordState::Hashed
).
def password=(password : PasswordState)
#
Generally unused empty/blank password (set to PasswordState::Hashed
).