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

Constructor Detail

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

Apache CXF API

Apache CXF