public class User
extends java.lang.Object
Constructor and Description |
---|
User(java.lang.String name,
java.lang.String password)
Creates a new User using the given
name and password . |
User(java.lang.String name,
java.lang.String password,
java.lang.String[] restrictedPaths)
Creates a new User using the given
name , password and the
restricted paths. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the User.
|
java.lang.String |
getPassword()
Returns te password of the User.
|
java.lang.String[] |
getRestrictedPaths()
Returns the restricted paths of the User.
|
void |
setRestrictedPaths(java.lang.String[] restrictedPaths)
Sets the restricted paths for the User.
|
public User(java.lang.String name, java.lang.String password)
name
and password
.name
- The name.password
- The corresponding password (usually a MD5).public User(java.lang.String name, java.lang.String password, java.lang.String[] restrictedPaths)
name
, password
and the
restricted paths.name
- The name.password
- The corresponding password (usually a MD5).restrictedPaths
- An array of relative paths this User should have no access at.
Must not be null
.public java.lang.String getName()
public java.lang.String getPassword()
public java.lang.String[] getRestrictedPaths()
public void setRestrictedPaths(java.lang.String[] restrictedPaths)
restrictedPaths
- The restricted paths to set.