public class RuleSet extends Object implements EventLoggerProvider
| 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.
|
List<Rule> |
getAllRules()
Returns all rules in the
RuleSet. |
Result |
getDefault()
Default deny.
|
EventLogger |
getEventLogger() |
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 List<Rule> getAllRules()
RuleSet. Primarily intended to support unit-testing.public EventLogger getEventLogger()
getEventLogger in interface EventLoggerProviderCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.