Class PolicyTreeNode
java.lang.Object
eu.europa.esig.dss.validation.process.bbb.xcv.sub.checks.PolicyTreeNode
Represents a valid_policy_tree node (leaf) as per RFC 5280
-
Constructor Summary
ConstructorDescriptionPolicyTreeNode
(String policyOid, String policyQualifier) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
addChildNodeIfMatch
(PolicyTreeNode policyNode) This method adds apolicyNode
to the node's children, when applicableCreates any policy children corresponding to the current policy nodedeleteNodesAtLevelWithoutChildren
(int depthLevel) Removes nodes at the givendepthLevel
if not having children nodesstatic PolicyTreeNode
initTree()
Initialize the first node of the valid policy tree (containing anyPolicy as the first element)boolean
Returns if the current policy node represents anyPolicy
-
Constructor Details
-
Method Details
-
initTree
Initialize the first node of the valid policy tree (containing anyPolicy as the first element)- Returns:
PolicyTreeNode
-
isAnyPolicy
public boolean isAnyPolicy()Returns if the current policy node represents anyPolicy- Returns:
- TRUE if the policy node represents anyPolicy, FALSE otherwise
-
addChildNodeIfMatch
This method adds apolicyNode
to the node's children, when applicable- Parameters:
policyNode
-PolicyTreeNode
to add if applicable- Returns:
- whether the node has been added
-
createAnyPolicyChildren
Creates any policy children corresponding to the current policy node- Returns:
- set of
PolicyTreeNode
s
-
deleteNodesAtLevelWithoutChildren
Removes nodes at the givendepthLevel
if not having children nodes- Parameters:
depthLevel
- the level to remove nodes without children from (0 is considered as the current node)- Returns:
PolicyTreeNode
-