Class GenericUser

java.lang.Object
org.openhab.core.auth.GenericUser
All Implemented Interfaces:
Principal, User, Identifiable<String>

@NonNullByDefault public class GenericUser extends Object implements User
Represents a generic User with a set of roles
Author:
Yannick Schaus - initial contribution
  • Field Details

  • Constructor Details

    • GenericUser

      public GenericUser(String name, Set<String> roles)
      Constructs a user attributed with a set of roles.
      Parameters:
      name - the username (account name)
      roles - the roles attributed to this user
    • GenericUser

      public GenericUser(String name)
      Constructs a user with no roles.
      Parameters:
      name - the username (account name)
  • Method Details