Class DerivedSecurityLevelPolicyNode
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.auth.security.level.policy.DerivedSecurityLevelPolicyNode
 
- 
- Direct Known Subclasses:
- AuthenticatedDerivedSecurityLevelPolicyNode
 
 public class DerivedSecurityLevelPolicyNode extends java.lang.ObjectA node on the Security Level Tree which has the name of the security level, an optional derived security level policy, and zero or more child nodes.
- 
- 
Constructor SummaryConstructors Constructor Description DerivedSecurityLevelPolicyNode(java.lang.String name, DerivedSecurityLevelPolicy policy, com.google.common.collect.ImmutableCollection<DerivedSecurityLevelPolicyNode> children)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<SecurityLevelConfig>evaluate(SecurityLevelPolicyEvaluationContext context, java.lang.String... path)Evaluate the policy for this node and its children against the given context.
 
- 
- 
- 
Constructor Detail- 
DerivedSecurityLevelPolicyNodepublic DerivedSecurityLevelPolicyNode(@Nonnull java.lang.String name, @Nullable DerivedSecurityLevelPolicy policy, @Nonnull com.google.common.collect.ImmutableCollection<DerivedSecurityLevelPolicyNode> children)
 
- 
 - 
Method Detail- 
evaluate@Nonnull public java.util.Optional<SecurityLevelConfig> evaluate(@Nonnull SecurityLevelPolicyEvaluationContext context, @Nonnull java.lang.String... path) Evaluate the policy for this node and its children against the given context.- Parameters:
- context- the context for this evaluation
- path- the path of the parent security level
- Returns:
- an Optionalcontaining theSecurityLevelConfigrepresenting the security level grants for this node's policy and this node's children's policies or an empty Optional if this node and all of its descendants either have no policy or have a policy which evaluates to false
 
 
- 
 
-