|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.security.Superusers
@InterfaceAudience.Private public final class Superusers
Keeps lists of superusers and super groups loaded from HBase configuration, checks if certain user is regarded as superuser.
Field Summary | |
---|---|
static String |
SUPERUSER_CONF_KEY
Configuration key for superusers |
Method Summary | |
---|---|
static List<String> |
getSuperUsers()
|
static void |
initialize(org.apache.hadoop.conf.Configuration conf)
Should be called only once to pre-load list of super users and super groups from Configuration. |
static boolean |
isSuperUser(String user)
Deprecated. Use isSuperUser(User) |
static boolean |
isSuperUser(User user)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SUPERUSER_CONF_KEY
Method Detail |
---|
public static void initialize(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- configuration to load users from
IOException
- if unable to initialize lists of superusers or super groups
IllegalStateException
- if current user is nullpublic static boolean isSuperUser(User user)
user
- to check
IllegalStateException
- if lists of superusers/super groups
haven't been initialized properly@Deprecated public static boolean isSuperUser(String user)
isSuperUser(User)
user
- to check
IllegalStateException
- if lists of superusers/super groups
haven't been initialized properlypublic static List<String> getSuperUsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |