public final class PolicyIntersector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PolicyIntersector.CompatibilityMode |
| Modifier and Type | Field and Description |
|---|---|
private static PolicyIntersector |
LAX_INTERSECTOR |
private static PolicyLogger |
LOGGER |
private PolicyIntersector.CompatibilityMode |
mode |
private static PolicyIntersector |
STRICT_INTERSECTOR |
| Modifier | Constructor and Description |
|---|---|
private |
PolicyIntersector(PolicyIntersector.CompatibilityMode intersectionMode)
Prevents direct instantiation of this class from outside
|
| Modifier and Type | Method and Description |
|---|---|
static PolicyIntersector |
createLaxPolicyIntersector()
Returns a strict policy intersector that can be used to intersect group of policies.
|
static PolicyIntersector |
createStrictPolicyIntersector()
Returns a strict policy intersector that can be used to intersect group of policies.
|
Policy |
intersect(Policy... policies)
Performs intersection on the input collection of policies and returns the resulting (intersected) policy.
|
private static final PolicyIntersector STRICT_INTERSECTOR
private static final PolicyIntersector LAX_INTERSECTOR
private static final PolicyLogger LOGGER
private PolicyIntersector.CompatibilityMode mode
private PolicyIntersector(PolicyIntersector.CompatibilityMode intersectionMode)
intersectionMode - intersection modepublic static PolicyIntersector createStrictPolicyIntersector()
public static PolicyIntersector createLaxPolicyIntersector()
public Policy intersect(Policy... policies)
policies - collection of policies to be intersected. Must not be null nor empty, otherwise exception is thrown.null value is never returned.java.lang.IllegalArgumentException - in case policies argument is either null or empty collection.