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.Configurationprivate VisibilityLabelsCacheprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()getLabels(User user, Authorizations authorizations) Helps to get a list of lables associated with an UGIvoidsetConf(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
LOG
-
conf
-
labelsCache
-
-
Constructor Details
-
DefinedSetFilterScanLabelGenerator
public DefinedSetFilterScanLabelGenerator()
-
-
Method Details
-
setConf
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
getLabels
Description copied from interface:ScanLabelGeneratorHelps to get a list of lables associated with an UGI- Specified by:
getLabelsin interfaceScanLabelGenerator- Returns:
- The labels
-
dropLabelsNotInUserAuths
-