Kereta Yarsi Indonesia
Loading...
Searching...
No Matches
model.Admin Class Reference
Inheritance diagram for model.Admin:
model.User

Public Member Functions

 Admin (int userID, String username, String password, byte[] salt, String role)
 
 Admin (int userID, String username, String password, byte[] salt)
 
void manageUsers ()
 
- Public Member Functions inherited from model.User
 User ()
 
 User (int userID, String username, String password, byte[] salt, String role)
 
 User (int userID, String username, String password, byte[] salt)
 
int getUserID ()
 
void setUserID (int userID)
 
String getUsername ()
 
void setUsername (String username)
 
String getPassword ()
 
void setPassword (String password)
 
byte[] getSalt ()
 
void setSalt (byte[] salt)
 
String getRole ()
 
void setRole (String role)
 

Detailed Description

Represents an admin user in the system.

Author
Muhammad Rizal Anditama Nugraha

Constructor & Destructor Documentation

◆ Admin() [1/2]

model.Admin.Admin ( int  userID,
String  username,
String  password,
byte[]  salt,
String  role 
)
inline

Constructs a new Admin.

Parameters
userIDthe user ID
usernamethe username
passwordthe password
saltthe salt used for password hashing
rolethe role of the user

◆ Admin() [2/2]

model.Admin.Admin ( int  userID,
String  username,
String  password,
byte[]  salt 
)
inline

Constructs a new Admin with role "admin".

Parameters
userIDthe user ID
usernamethe username
passwordthe password
saltthe salt used for password hashing

Member Function Documentation

◆ manageUsers()

void model.Admin.manageUsers ( )
inline

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