Package org.wildfly.plugin.server
Class User
- java.lang.Object
-
- org.wildfly.plugin.server.User
-
public class User extends Object
Represents a user for the server.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<String>getGroups()Returns a collection of groups the user belongs to.StringgetPassword()Returns the password for the user.StringgetRealm()Returns the realm the user belongs to.StringgetUsername()Returns the username for the user.inthashCode()booleanisApplicationUser()Indicates whether or not this is an application user.voidset(String value)Allows a user to be set by a string value.StringtoString()
-
-
-
Method Detail
-
getUsername
public String getUsername()
Returns the username for the user.- Returns:
- the user name
-
getPassword
public String getPassword()
Returns the password for the user.- Returns:
- the users password
-
getGroups
public List<String> getGroups()
Returns a collection of groups the user belongs to.- Returns:
- the groups the user belongs
-
getRealm
public String getRealm()
Returns the realm the user belongs to.- Returns:
- the users realm
-
isApplicationUser
public boolean isApplicationUser()
Indicates whether or not this is an application user.- Returns:
trueif this is an application user, otherwisefalse
-
set
public void set(String value)
Allows a user to be set by a string value. The format isuser:password:groups:realm:true|false.Both username and password are required. Groups can be a comma delimited set of groups.
- Parameters:
value- the string user value
-
-