public class VisibilityEvaluator extends Object
|Constructor and Description|
Creates a new evaluator for the authorizations found in the given container.
Creates a new evaluator for the given collection of authorizations.
|Modifier and Type||Method and Description|
Properly escapes an authorization string.
Evaluates the given column visibility against the authorizations provided to this evaluator.
public VisibilityEvaluator(AuthorizationContainer authsContainer)
public VisibilityEvaluator(Authorizations authorizations)
authorizations- authorizations object
public static byte escape(byte auth, boolean quote)
auth- authorization string, as UTF-8 encoded bytes
quote- true to wrap escaped authorization in quotes
public boolean evaluate(ColumnVisibility visibility) throws VisibilityParseException
visibility- column visibility to evaluate
VisibilityParseException- if an AND or OR subexpression has less than two children, or a subexpression is of an unknown type
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.