Package org.openhab.core.auth
Class GenericUser
java.lang.Object
org.openhab.core.auth.GenericUser
- All Implemented Interfaces:
Principal
,User
,Identifiable<String>
Represents a generic
User
with a set of roles- Author:
- Yannick Schaus - initial contribution
-
Constructor Summary
ConstructorDescriptionGenericUser
(String name) Constructs a user with no roles.GenericUser
(String name, Set<String> roles) Constructs a user attributed with a set of roles. -
Method Summary
-
Constructor Details
-
GenericUser
Constructs a user attributed with a set of roles.- Parameters:
name
- the username (account name)roles
- the roles attributed to this user
-
GenericUser
Constructs a user with no roles.- Parameters:
name
- the username (account name)
-
-
Method Details
-
getName
-
getUID
Description copied from interface:Identifiable
Get the unique identifier.- Specified by:
getUID
in interfaceIdentifiable<String>
- Returns:
- the unique identifier
-
getRoles
Description copied from interface:User
Gets the roles attributed to the user.
-