Class TestHttpServer.MyGroupsProvider

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.security.ShellBasedUnixGroupsMapping
org.apache.hadoop.hbase.http.TestHttpServer.MyGroupsProvider
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.security.GroupMappingServiceProvider
Enclosing class:
TestHttpServer

public static class TestHttpServer.MyGroupsProvider extends org.apache.hadoop.security.ShellBasedUnixGroupsMapping
Custom user->group mapping service.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static Map<String,List<String>>
     

    Fields inherited from class org.apache.hadoop.security.ShellBasedUnixGroupsMapping

    LOG

    Fields inherited from interface org.apache.hadoop.security.GroupMappingServiceProvider

    GROUP_MAPPING_CONFIG_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
     
     

    Methods inherited from class org.apache.hadoop.security.ShellBasedUnixGroupsMapping

    cacheGroupsAdd, cacheGroupsRefresh, createGroupExecutor, createGroupIDExecutor, getGroupsForUserCommand, getGroupsIDForUserCommand, resolveFullGroupNames, setConf

    Methods inherited from class org.apache.hadoop.conf.Configured

    getConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • clearMapping

      static void clearMapping()
    • getGroups

      public List<String> getGroups(String user)
      Specified by:
      getGroups in interface org.apache.hadoop.security.GroupMappingServiceProvider
      Overrides:
      getGroups in class org.apache.hadoop.security.ShellBasedUnixGroupsMapping