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
ConstructorsConstructorDescriptionGenericUser(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:IdentifiableGet the unique identifier.- Specified by:
getUIDin interfaceIdentifiable<String>- Returns:
- the unique identifier
-
getRoles
Description copied from interface:UserGets the roles attributed to the user.
-