Apache CXF API

org.apache.cxf.ws.security.wss4j
Class CryptoCoverageChecker.XPathExpression

java.lang.Object
  extended by 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
CryptoCoverageChecker.XPathExpression(String xPath, CryptoCoverageUtil.CoverageType type)
          Create a new expression indicating a cryptographic coverage requirement with scope CryptoCoverageUtil.CoverageScope.ELEMENT.
CryptoCoverageChecker.XPathExpression(String xPath, CryptoCoverageUtil.CoverageType type, CryptoCoverageUtil.CoverageScope scope)
          Create a new expression indicating a cryptographic coverage requirement.
 
Method Summary
 boolean equals(Object xpathObject)
           
 CryptoCoverageUtil.CoverageScope getScope()
          Returns the coverage scope.
 CryptoCoverageUtil.CoverageType getType()
          Returns the coverage type.
 String getXPath()
          Returns the XPath expression.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoCoverageChecker.XPathExpression

public CryptoCoverageChecker.XPathExpression(String xPath,
                                             CryptoCoverageUtil.CoverageType type)
Create a new expression indicating a cryptographic coverage requirement with scope CryptoCoverageUtil.CoverageScope.ELEMENT.

Parameters:
xPath - the XPath expression
type - the type of coverage that the expression is meant to enforce
Throws:
NullPointerException - if xPath or type is null

CryptoCoverageChecker.XPathExpression

public CryptoCoverageChecker.XPathExpression(String xPath,
                                             CryptoCoverageUtil.CoverageType type,
                                             CryptoCoverageUtil.CoverageScope scope)
Create a new expression indicating a cryptographic coverage requirement. If type is CryptoCoverageUtil.CoverageType.SIGNED, the scope CryptoCoverageUtil.CoverageScope.CONTENT does not represent a configuration supported in WS-Security.

Parameters:
xPath - the XPath expression
type - the type of coverage that the expression is meant to enforce
scope - the scope of coverage that the expression is meant to enforce, defaults to CryptoCoverageUtil.CoverageScope.ELEMENT
Throws:
NullPointerException - if xPath or type is null
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

equals

public boolean equals(Object xpathObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Apache CXF API

Apache CXF