Methods Summary |
---|
public static com.sun.xml.ws.policy.AssertionValidationProcessor | getInstance()Factory method that returns singleton instance of the class.
if (validators.length == 0) {
throw LOGGER.logSevereException(new PolicyException(WSP_0076_NO_SERVICE_PROVIDERS_FOUND(PolicyAssertionValidator.class.getName())));
}
return processor;
|
public PolicyAssertionValidator.Fitness | validateClientSide(PolicyAssertion assertion)Validates fitness of the {@code assertion} on the client side.
return client side {@code assertion} fitness
PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
for ( PolicyAssertionValidator validator : validators ) {
assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
break;
}
}
return assertionFitness;
|
public PolicyAssertionValidator.Fitness | validateServerSide(PolicyAssertion assertion)Validates fitness of the {@code assertion} on the server side.
return server side {@code assertion} fitness
PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
for (PolicyAssertionValidator validator : validators) {
assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
break;
}
}
return assertionFitness;
|