public class GenericUser extends Object implements User
| Modifier and Type | Field and Description |
|---|---|
protected String |
authenticationSource |
protected String |
username |
| Constructor and Description |
|---|
GenericUser() |
| Modifier and Type | Method and Description |
|---|---|
String |
describeMetadata()
Will return a JSON string description of an extending classes' fields.
|
String |
get(String property)
Retrieves a given property for this user object.
|
String |
getSource()
Used by the authentication manager to track the user's origin
|
String |
getUsername()
Retrieve the user's name
|
String |
realName()
Retrieves how the user should be shown on-screen.
|
void |
set(String property,
String value)
Sets a given property for this user object.
|
void |
setSource(String plugin)
Used by the authentication manager to track the user's origin
|
void |
setUsername(String newName)
Set user's name
|
protected String username
protected String authenticationSource
public final String describeMetadata()
describeMetadata in interface Userproperty - The class field to retrievepublic final void set(String property, String value)
public String realName()
public void setUsername(String newName)
setUsername in interface UsernewName - public String getUsername()
getUsername in interface Userpublic void setSource(String plugin)
Copyright © 2009-2015. All Rights Reserved.