Class AssertionValidationProcessor

java.lang.Object
com.sun.xml.ws.policy.AssertionValidationProcessor
Direct Known Subclasses:
ValidationProcessor

public class AssertionValidationProcessor extends Object
Provides methods for assertion validation.
Author:
Marek Potociar, Fabian Ritzmann
  • Constructor Details

    • AssertionValidationProcessor

      protected AssertionValidationProcessor(Collection<PolicyAssertionValidator> policyValidators) throws PolicyException
      This constructor adds the given set of policy validators to the dynamically discovered PolicyAssertionValidators. This constructor is intended to be used by the JAX-WS com.sun.xml.ws.policy.api.ValidationProcessor.
      Parameters:
      policyValidators - A set of PolicyAssertionValidators. May be null
      Throws:
      PolicyException - Thrown if the set of given PolicyAssertionValidators and dynamically discovered PolicyAssertionValidators is empty.
  • Method Details

    • getInstance

      public static AssertionValidationProcessor getInstance() throws PolicyException
      Factory method that returns singleton instance of the class. This method is only intended to be used by code that has no dependencies on JAX-WS. Otherwise use com.sun.xml.ws.api.policy.ValidationProcessor.
      Returns:
      singleton An instance of the class.
      Throws:
      PolicyException - If instantiation failed.
    • validateClientSide

      public PolicyAssertionValidator.Fitness validateClientSide(PolicyAssertion assertion) throws PolicyException
      Validates fitness of the assertion on the client side. return client side assertion fitness
      Parameters:
      assertion - The assertion to be validated.
      Returns:
      The fitness of the assertion on the client side.
      Throws:
      PolicyException - If validation failed.
    • validateServerSide

      public PolicyAssertionValidator.Fitness validateServerSide(PolicyAssertion assertion) throws PolicyException
      Validates fitness of the assertion on the server side. return server side assertion fitness
      Parameters:
      assertion - The assertion to be validated.
      Returns:
      The fitness of the assertion on the server side.
      Throws:
      PolicyException - If validation failed.