org.apache.hadoop.hbase.security.visibility
Class DefinedSetFilterScanLabelGenerator
java.lang.Object
org.apache.hadoop.hbase.security.visibility.DefinedSetFilterScanLabelGenerator
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, ScanLabelGenerator
@InterfaceAudience.Private
public class DefinedSetFilterScanLabelGenerator
- extends Object
- implements ScanLabelGenerator
This is an implementation for ScanLabelGenerator.
It will extract labels from passed in authorizations and cross check
against the set of predefined authorization labels for given user.
The labels for which the user is not authorized will be dropped.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefinedSetFilterScanLabelGenerator
public DefinedSetFilterScanLabelGenerator()
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
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.