Package org.wildfly.plugin.server
Class User
java.lang.Object
org.wildfly.plugin.server.User
Represents a user for the server.
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a collection of groups the user belongs to.Returns the password for the user.getRealm()
Returns the realm the user belongs to.Returns the username for the user.int
hashCode()
boolean
Indicates whether or not this is an application user.void
Allows a user to be set by a string value.toString()
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getUsername
Returns the username for the user.- Returns:
- the user name
-
getPassword
Returns the password for the user.- Returns:
- the users password
-
getGroups
Returns a collection of groups the user belongs to.- Returns:
- the groups the user belongs
-
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:
true
if this is an application user, otherwisefalse
-
set
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
-
hashCode
public int hashCode() -
equals
-
toString
-