Class FeedUserAuthScanLabelGenerator
java.lang.Object
org.apache.hadoop.hbase.security.visibility.FeedUserAuthScanLabelGenerator
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,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.
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configuration
private VisibilityLabelsCache
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
-
Field Details
-
LOG
-
conf
-
labelsCache
-
-
Constructor Details
-
FeedUserAuthScanLabelGenerator
public FeedUserAuthScanLabelGenerator()
-
-
Method Details
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
getConf
- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
getLabels
Description copied from interface:ScanLabelGenerator
Helps to get a list of lables associated with an UGI- Specified by:
getLabels
in interfaceScanLabelGenerator
- Returns:
- The labels
-