Package org.apache.wss4j.policy.stax
Class PolicyUtils
java.lang.Object
org.apache.wss4j.policy.stax.PolicyUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe element steps parsed from a sp:XPath expression. -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyUtils.ElementPathabsoluteElementPath(List<QName> path) Wraps an already fully-qualified, absolute element path (e.g. a well-known SOAP header path built in code) as an ElementPath that must match the observed path exactly.getElementPath(org.apache.wss4j.policy.model.XPath xPath) Parses an XPath into raw QName steps.static PolicyUtils.ElementPathgetElementPathDescriptor(org.apache.wss4j.policy.model.XPath xPath) Parses a sp:XPath expression into validated element steps.
-
Method Details
-
getElementPath
Parses an XPath into raw QName steps. -
getElementPathDescriptor
public static PolicyUtils.ElementPath getElementPathDescriptor(org.apache.wss4j.policy.model.XPath xPath) throws org.apache.wss4j.common.WSSPolicyException Parses a sp:XPath expression into validated element steps. Only chains of plain prefix:localName (or localName) steps are supported, either absolute (leading "/") or relative; wildcards, predicates, functions and descendant ("//") steps are rejected instead of silently producing a path that could never match a real element (CWE-347).- Throws:
org.apache.wss4j.common.WSSPolicyException
-
absoluteElementPath
Wraps an already fully-qualified, absolute element path (e.g. a well-known SOAP header path built in code) as an ElementPath that must match the observed path exactly.
-