Class DefinedSetFilterScanLabelGenerator
java.lang.Object
org.apache.hadoop.hbase.security.visibility.DefinedSetFilterScanLabelGenerator
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,ScanLabelGenerator
@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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configuration
private VisibilityLabelsCache
private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.Configuration
getConf()
getLabels
(User user, Authorizations authorizations) Helps to get a list of lables associated with an UGIvoid
setConf
(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
LOG
-
conf
-
labelsCache
-
-
Constructor Details
-
DefinedSetFilterScanLabelGenerator
public DefinedSetFilterScanLabelGenerator()
-
-
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
-
dropLabelsNotInUserAuths
-