public static class Policy.Rule.RuleBuilder extends Object
Policy.Rule.| Constructor and Description |
|---|
RuleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Policy.Rule.RuleBuilder |
allowedParameter(String name,
String... values)
Configure allowed parameter values given
name and values. |
Policy.Rule |
build()
Build the
Policy.Rule object. |
Policy.Rule.RuleBuilder |
capabilities(Policy.Capability... capabilities)
Configure capabilities. apabilities are added when calling this method and
do not replace already configured capabilities.
|
Policy.Rule.RuleBuilder |
capabilities(String... capabilities)
Configure capabilities represented as
String literals. |
Policy.Rule.RuleBuilder |
capability(Policy.Capability capability)
Configure a
Policy.Capability for the rule. |
Policy.Rule.RuleBuilder |
deniedParameter(String name,
String... values)
Configure denied parameter values given
name and values. |
Policy.Rule.RuleBuilder |
maxWrappingTtl(Duration ttl)
Configure a max TTL for response wrapping.
|
Policy.Rule.RuleBuilder |
minWrappingTtl(Duration ttl)
Configure a min TTL for response wrapping.
|
Policy.Rule.RuleBuilder |
path(String path)
Associate a
path with the rule. |
public Policy.Rule.RuleBuilder path(String path)
path with the rule.path - must not be null or empty.this Policy.Rule.RuleBuilder.public Policy.Rule.RuleBuilder capability(Policy.Capability capability)
Policy.Capability for the rule. Capabilities are added when
calling this method and do not replace already configured capabilities.capability - must not be null.this Policy.Rule.RuleBuilder.public Policy.Rule.RuleBuilder capabilities(Policy.Capability... capabilities)
capabilities - must not be null.this Policy.Rule.RuleBuilder.public Policy.Rule.RuleBuilder capabilities(String... capabilities)
String literals. This method
resolves capabilities using Policy.BuiltinCapabilities. Capabilities are
added when calling this method and do not replace already configured
capabilities.capabilities - must not be null.this Policy.Rule.RuleBuilder.IllegalArgumentException - if the capability cannot be resolved to a
built-in Policy.Capability.public Policy.Rule.RuleBuilder minWrappingTtl(Duration ttl)
ttl - must not be null.this Policy.Rule.RuleBuilder.public Policy.Rule.RuleBuilder maxWrappingTtl(Duration ttl)
ttl - must not be null.this Policy.Rule.RuleBuilder.public Policy.Rule.RuleBuilder allowedParameter(String name, String... values)
name and values.
Allowing parameter values replaces previously configured allowed parameter
values. Empty values allow all values for the given parameter
name.name - must not be null or empty.values - must not be null.this Policy.Rule.RuleBuilder.public Policy.Rule.RuleBuilder deniedParameter(String name, String... values)
name and values.
Denying parameter values replaces previously configured denied parameter
values. Empty values deny parameter usage.name - must not be null or empty.values - must not be null.this Policy.Rule.RuleBuilder.public Policy.Rule build()
Policy.Rule object. Requires a configured path(String)
and at least one capability(Policy.Capability).Policy.Rule object.Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.