public class RuleSet extends Object implements EventLoggerProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALLOW |
static String |
DEFAULT_DENY |
| Constructor and Description |
|---|
RuleSet(EventLoggerProvider eventLogger,
Collection<Rule> rules,
Result defaultResult) |
| Modifier and Type | Method and Description |
|---|---|
Result |
check(Subject subject,
LegacyOperation operation,
ObjectType objectType,
ObjectProperties properties)
Checks for the case when the client's address is not known.
|
Result |
check(Subject subject,
LegacyOperation operation,
ObjectType objectType,
ObjectProperties properties,
InetAddress addressOfClient)
Check the authorisation granted to a particular identity for an operation on an object type with
specific properties.
|
void |
configure(Map<String,Boolean> properties)
Configure properties for the plugin instance.
|
List<Rule> |
getAllRules()
Returns all rules in the
RuleSet. |
Result |
getDefault()
Default deny.
|
EventLogger |
getEventLogger() |
public static final String DEFAULT_ALLOW
public static final String DEFAULT_DENY
public RuleSet(EventLoggerProvider eventLogger, Collection<Rule> rules, Result defaultResult)
public Result check(Subject subject, LegacyOperation operation, ObjectType objectType, ObjectProperties properties)
public Result check(Subject subject, LegacyOperation operation, ObjectType objectType, ObjectProperties properties, InetAddress addressOfClient)
public Result getDefault()
public void configure(Map<String,Boolean> properties)
properties - public List<Rule> getAllRules()
RuleSet. Primarily intended to support unit-testing.public EventLogger getEventLogger()
getEventLogger in interface EventLoggerProviderCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.