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
ConstructorsConstructorDescriptionPolicyTreeNode(String policyOid, String policyQualifier) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddChildNodeIfMatch(PolicyTreeNode policyNode) This method adds apolicyNodeto the node's children, when applicableCreates any policy children corresponding to the current policy nodedeleteNodesAtLevelWithoutChildren(int depthLevel) Removes nodes at the givendepthLevelif not having children nodesstatic PolicyTreeNodeinitTree()Initialize the first node of the valid policy tree (containing anyPolicy as the first element)booleanReturns 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 apolicyNodeto the node's children, when applicable- Parameters:
policyNode-PolicyTreeNodeto add if applicable- Returns:
- whether the node has been added
-
createAnyPolicyChildren
Creates any policy children corresponding to the current policy node- Returns:
- set of
PolicyTreeNodes
-
deleteNodesAtLevelWithoutChildren
Removes nodes at the givendepthLevelif not having children nodes- Parameters:
depthLevel- the level to remove nodes without children from (0 is considered as the current node)- Returns:
PolicyTreeNode
-