Database Reference
In-Depth Information
}
public void setBlogName(String blogName) {
this.blogName = blogName;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
/* Ideally, you'd use a unique salt with this hashing */
this.password = Hashing
.sha256()
.hashString(password, Charsets.UTF_8)
.toString();
}
@Override
public boolean equals(Object that) {
return this.getId().equals(((Blog)that).getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId(), getEmail(),
getAuthor(), getBlogName());
}
@Override
Search WWH ::




Custom Search