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 SummaryConstructorsConstructorDescriptionPolicyTreeNode(String policyOid, String policyQualifier) Default constructor
- 
Method SummaryModifier 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- 
PolicyTreeNode
 
- 
- 
Method Details- 
initTreeInitialize the first node of the valid policy tree (containing anyPolicy as the first element)- Returns:
- PolicyTreeNode
 
- 
isAnyPolicypublic boolean isAnyPolicy()Returns if the current policy node represents anyPolicy- Returns:
- TRUE if the policy node represents anyPolicy, FALSE otherwise
 
- 
addChildNodeIfMatchThis method adds apolicyNodeto the node's children, when applicable- Parameters:
- policyNode-- PolicyTreeNodeto add if applicable
- Returns:
- whether the node has been added
 
- 
createAnyPolicyChildrenCreates any policy children corresponding to the current policy node- Returns:
- set of PolicyTreeNodes
 
- 
deleteNodesAtLevelWithoutChildrenRemoves 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
 
 
-