Class ScimFilterPolicy.Builder
java.lang.Object
com.revetsec.scim.ScimFilterPolicy.Builder
- Enclosing class:
ScimFilterPolicy
Mutable, non-thread-safe policy configuration. Setters replace complete snapshots. Null
clears collections and restores the registered comparison-count default.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionallowedComparisons(@Nullable Map<@NonNull String, @NonNull Set<@NonNull ScimComparisonOperator>> value) Replaces supported comparison shapes with a deep immutable collection snapshot.Replaces supported logical operators with an immutable snapshot.allowedPresence(@Nullable Set<@NonNull String> value) Replaces supported presence paths with an immutable snapshot.Replaces supported ValuePath policies after checking finite acyclic graph bounds.build()Checks path syntax and graph bounds and creates a complete immutable snapshot.maximumComparisons(@Nullable Integer value) Sets the comparison-count limit: default 32, inclusive range 1–128.
-
Method Details
-
allowedComparisons
public @NonNull ScimFilterPolicy.Builder allowedComparisons(@Nullable Map<@NonNull String, @NonNull Set<@NonNull ScimComparisonOperator>> value) Replaces supported comparison shapes with a deep immutable collection snapshot.- Parameters:
value- complete comparison map, or null to deny comparisons- Returns:
- this builder
- Since:
- 1.0.0
-
allowedPresence
Replaces supported presence paths with an immutable snapshot.- Parameters:
value- complete path set, or null to deny presence- Returns:
- this builder
- Since:
- 1.0.0
-
allowedValuePaths
public @NonNull ScimFilterPolicy.Builder allowedValuePaths(@Nullable Map<@NonNull String, @NonNull ScimFilterPolicy> value) Replaces supported ValuePath policies after checking finite acyclic graph bounds.- Parameters:
value- complete path-to-policy map, or null to deny ValuePath- Returns:
- this builder
- Since:
- 1.0.0
-
allowedLogicalOperators
public @NonNull ScimFilterPolicy.Builder allowedLogicalOperators(@Nullable Set<@NonNull ScimLogicalOperator> value) Replaces supported logical operators with an immutable snapshot.- Parameters:
value- complete operator set, or null to deny logical operators- Returns:
- this builder
- Since:
- 1.0.0
-
maximumComparisons
Sets the comparison-count limit: default 32, inclusive range 1–128. The filter's node limit provides an additional bound when a complete filter is checked.- Parameters:
value- the limit, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
build
Checks path syntax and graph bounds and creates a complete immutable snapshot. Schema registration and normalized-filter approval are later service-provider operations.- Returns:
- filter policy
- Since:
- 1.0.0
-