NeKernel dev
Loading...
Searching...
No Matches
Kernel::User Class Referencefinal

System User class. More...

#include <UserMgr.h>

Public Member Functions

 User ()=delete
 User (const Int32 &sel, const Char *username)
 User ring constructor.
 User (const UserRingKind &kind, const Char *username)
 User ring constructor.
 ~User ()
 User destructor class.
bool operator== (const User &lhs)
bool operator!= (const User &lhs)
const UserRingKindRing () noexcept
 Get software ring.
CharName () noexcept
 Get user name.
Bool IsStdUser () noexcept
 Is he a standard user?
Bool IsSuperUser () noexcept
 Is she a super user?
Bool Save (const UserPublicKey password) noexcept
 Saves a password from the public key.
Bool Login (const UserPublicKey password) noexcept
 Checks if a password matches the password.

Private Attributes

UserRingKind mUserRing {UserRingKind::kRingStdUser}
Char mUserName [kMaxUserNameLen] = {0}
UInt64 mUserFNV {0UL}

Detailed Description

System User class.

Constructor & Destructor Documentation

◆ User() [1/3]

Kernel::User::User ( )
delete

◆ User() [2/3]

Kernel::User::User ( const Int32 & sel,
const Char * username )

User ring constructor.

◆ User() [3/3]

Kernel::User::User ( const UserRingKind & kind,
const Char * username )

User ring constructor.

◆ ~User()

Kernel::User::~User ( )
default

User destructor class.

Member Function Documentation

◆ IsStdUser()

Bool Kernel::User::IsStdUser ( )
noexcept

Is he a standard user?

◆ IsSuperUser()

Bool Kernel::User::IsSuperUser ( )
noexcept

Is she a super user?

◆ Login()

Bool Kernel::User::Login ( const UserPublicKey password)
noexcept

Checks if a password matches the password.

Parameters
passwordthe password to check.

◆ Name()

Char * Kernel::User::Name ( )
noexcept

Get user name.

Returns the user's name.

◆ operator!=()

Bool Kernel::User::operator!= ( const User & lhs)

◆ operator==()

Bool Kernel::User::operator== ( const User & lhs)

◆ Ring()

const UserRingKind & Kernel::User::Ring ( )
noexcept

Get software ring.

Returns the user's ring.

Returns
The king of ring the user is attached to.

◆ Save()

Bool Kernel::User::Save ( const UserPublicKey password)
noexcept

Saves a password from the public key.

Member Data Documentation

◆ mUserFNV

UInt64 Kernel::User::mUserFNV {0UL}
private

◆ mUserName

Char Kernel::User::mUserName[kMaxUserNameLen] = {0}
private

◆ mUserRing

UserRingKind Kernel::User::mUserRing {UserRingKind::kRingStdUser}
private

The documentation for this class was generated from the following files: