* added updated example codes * updated example code StringToCharStream * deleted StringToCharStream.java locally * removed redundant file * added code for apache commons collection SetUtils * refactored example code * added example code for bytebuddy * added example code for PCollections * update pom * refactored tests for PCollections * spring security xml config * spring security xml config * remove redundant comment * example code for apache-shiro * updated example code for Vavr Collections * updated Vavr's Collection example * updated Vavr Collection file * updated example code for Apache Shiro
41 lines
821 B
Java
41 lines
821 B
Java
package com.baeldung.models;
|
|
|
|
public class UserCredentials {
|
|
|
|
private String username;
|
|
private String password;
|
|
private boolean rememberMe = false;
|
|
|
|
public UserCredentials() {}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public boolean isRememberMe() {
|
|
return rememberMe;
|
|
}
|
|
|
|
public void setRememberMe(boolean rememberMe) {
|
|
this.rememberMe = rememberMe;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "username = " + getUsername()
|
|
+ "\nrememberMe = " + isRememberMe();
|
|
}
|
|
}
|