June 1999
Intermediate to advanced
368 pages
8h 21m
English
Our account entry holds two basic pieces of information about a user: a username and a password. Here is how the account entry is defined:
public class AccountEntry implements Entry {
public String username;
public String password;
public AccountEntry() {
}
public AccountEntry(String username) {
this.username = username;
}
public AccountEntry(String username, String password) {
this.username = username;
this.password = password;
}
}
The AccountEntry is a simple entry, having fields for the username and password and a couple constructors. An account entry is used as follows: When a user logs into the service for the first time, the messenger creates a new account entry and writes it into the space. This acts to reserve a unique ...
Read now
Unlock full access