Package org.apache.cxf.ws.security.wss4j
Class CryptoCoverageChecker.XPathExpression
java.lang.Object
org.apache.cxf.ws.security.wss4j.CryptoCoverageChecker.XPathExpression
- Enclosing class:
- CryptoCoverageChecker
A simple wrapper for an XPath expression and coverage type / scope
indicating how the XPath expression should be enforced as a cryptographic
coverage requirement.
-
Constructor Summary
ConstructorsConstructorDescriptionXPathExpression(String xPath, CryptoCoverageUtil.CoverageType type) Create a new expression indicating a cryptographic coverage requirement withscopeCryptoCoverageUtil.CoverageScope.ELEMENT.XPathExpression(String xPath, CryptoCoverageUtil.CoverageType type, CryptoCoverageUtil.CoverageScope scope) Create a new expression indicating a cryptographic coverage requirement. -
Method Summary
-
Constructor Details
-
XPathExpression
Create a new expression indicating a cryptographic coverage requirement withscopeCryptoCoverageUtil.CoverageScope.ELEMENT.- Parameters:
xPath- the XPath expressiontype- the type of coverage that the expression is meant to enforce- Throws:
NullPointerException- ifxPathortypeisnull
-
XPathExpression
public XPathExpression(String xPath, CryptoCoverageUtil.CoverageType type, CryptoCoverageUtil.CoverageScope scope) Create a new expression indicating a cryptographic coverage requirement. IftypeisCryptoCoverageUtil.CoverageType.SIGNED, thescopeCryptoCoverageUtil.CoverageScope.CONTENTdoes not represent a configuration supported in WS-Security.- Parameters:
xPath- the XPath expressiontype- the type of coverage that the expression is meant to enforcescope- the scope of coverage that the expression is meant to enforce, defaults toCryptoCoverageUtil.CoverageScope.ELEMENT- Throws:
NullPointerException- ifxPathortypeisnull
-
-
Method Details
-
getXPath
Returns the XPath expression.- Returns:
- the XPath expression
-
getType
Returns the coverage type.- Returns:
- the coverage type
-
getScope
Returns the coverage scope.- Returns:
- the coverage scope
-
equals
-
hashCode
public int hashCode()
-