org.apache.hadoop.hbase.security.visibility
Class FeedUserAuthScanLabelGenerator
java.lang.Object
org.apache.hadoop.hbase.security.visibility.FeedUserAuthScanLabelGenerator
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, ScanLabelGenerator
@InterfaceAudience.Private
public class FeedUserAuthScanLabelGenerator
- extends Object
- implements ScanLabelGenerator
If the passed in authorization is null, then this ScanLabelGenerator
feeds the set of predefined authorization labels for the given user. That is
the set defined by the admin using the VisibilityClient admin interface
or the set_auths shell command.
Otherwise the passed in authorization labels are returned with no change.
Note: This SLG should not be used alone because it does not check
the passed in authorization labels against what the user is authorized for.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeedUserAuthScanLabelGenerator
public FeedUserAuthScanLabelGenerator()
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–2016 The Apache Software Foundation. All rights reserved.