Class SimpleScanLabelGenerator

java.lang.Object
org.apache.hadoop.hbase.security.visibility.SimpleScanLabelGenerator
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, ScanLabelGenerator

@Private public class SimpleScanLabelGenerator extends Object implements ScanLabelGenerator
This is a simple implementation for ScanLabelGenerator. It will just extract labels passed via Scan#Authorizations.
  • Field Details

    • conf

      private org.apache.hadoop.conf.Configuration conf
  • Constructor Details

  • Method Details

    • setConf

      public void setConf(org.apache.hadoop.conf.Configuration conf)
      Specified by:
      setConf in interface org.apache.hadoop.conf.Configurable
    • getConf

      public org.apache.hadoop.conf.Configuration getConf()
      Specified by:
      getConf in interface org.apache.hadoop.conf.Configurable
    • getLabels

      public List<String> getLabels(User user, Authorizations authorizations)
      Description copied from interface: ScanLabelGenerator
      Helps to get a list of lables associated with an UGI
      Specified by:
      getLabels in interface ScanLabelGenerator
      Returns:
      The labels