com.sun.xml.internal.ws.policy.spi.PolicyAssertionValidator Java Examples

The following examples show how to use com.sun.xml.internal.ws.policy.spi.PolicyAssertionValidator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AssertionValidationProcessor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #2
Source File: AssertionValidationProcessor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #3
Source File: AssertionValidationProcessor.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #4
Source File: AssertionValidationProcessor.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #5
Source File: AssertionValidationProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #6
Source File: AssertionValidationProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #7
Source File: AssertionValidationProcessor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #8
Source File: AssertionValidationProcessor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #9
Source File: AssertionValidationProcessor.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #10
Source File: AssertionValidationProcessor.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #11
Source File: AssertionValidationProcessor.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #12
Source File: AssertionValidationProcessor.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #13
Source File: AssertionValidationProcessor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #14
Source File: AssertionValidationProcessor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #15
Source File: AssertionValidationProcessor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the client side.
 *
 * return client side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the client side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateClientSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for ( PolicyAssertionValidator validator : validators ) {
        assertionFitness = assertionFitness.combine(validator.validateClientSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}
 
Example #16
Source File: AssertionValidationProcessor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validates fitness of the {@code assertion} on the server side.
 *
 * return server side {@code assertion} fitness
 * @param assertion The assertion to be validated.
 * @return The fitness of the assertion on the server side.
 * @throws PolicyException If validation failed.
 */
public PolicyAssertionValidator.Fitness validateServerSide(final PolicyAssertion assertion) throws PolicyException {
    PolicyAssertionValidator.Fitness assertionFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
    for (PolicyAssertionValidator validator : validators) {
        assertionFitness = assertionFitness.combine(validator.validateServerSide(assertion));
        if (assertionFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
            break;
        }
    }

    return assertionFitness;
}