Package org.apache.cxf.ws.security.wss4j
Class CryptoCoverageChecker.XPathExpression
- java.lang.Object
-
- org.apache.cxf.ws.security.wss4j.CryptoCoverageChecker.XPathExpression
-
- Enclosing class:
- CryptoCoverageChecker
public static class CryptoCoverageChecker.XPathExpression extends Object
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
Constructors Constructor Description XPathExpression(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object xpathObject)CryptoCoverageUtil.CoverageScopegetScope()Returns the coverage scope.CryptoCoverageUtil.CoverageTypegetType()Returns the coverage type.StringgetXPath()Returns the XPath expression.inthashCode()
-
-
-
Constructor Detail
-
XPathExpression
public XPathExpression(String xPath, CryptoCoverageUtil.CoverageType type)
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 Detail
-
getXPath
public String getXPath()
Returns the XPath expression.- Returns:
- the XPath expression
-
getType
public CryptoCoverageUtil.CoverageType getType()
Returns the coverage type.- Returns:
- the coverage type
-
getScope
public CryptoCoverageUtil.CoverageScope getScope()
Returns the coverage scope.- Returns:
- the coverage scope
-
-