com.sun.xml.internal.ws.policy.NestedPolicy Java Examples
The following examples show how to use
com.sun.xml.internal.ws.policy.NestedPolicy.
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: AddressingPolicyValidator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #2
Source File: CompactModelGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #3
Source File: NormalizedModelGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #4
Source File: AddressingPolicyValidator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #5
Source File: CompactModelGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #6
Source File: NormalizedModelGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #7
Source File: AddressingPolicyValidator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #8
Source File: CompactModelGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #9
Source File: NormalizedModelGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #10
Source File: AddressingPolicyValidator.java From hottub with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #11
Source File: CompactModelGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #12
Source File: NormalizedModelGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #13
Source File: AddressingPolicyValidator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #14
Source File: CompactModelGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #15
Source File: NormalizedModelGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #16
Source File: AddressingPolicyValidator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #17
Source File: NormalizedModelGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #18
Source File: CompactModelGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #19
Source File: NormalizedModelGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #20
Source File: CompactModelGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #21
Source File: AddressingPolicyValidator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #22
Source File: CompactModelGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final AssertionSet set = policy.getAssertionSet(); translate(nestedPolicyRoot, set); return nestedPolicyRoot; }
Example #23
Source File: NormalizedModelGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy) { final ModelNode nestedPolicyRoot = parentAssertion.createChildPolicyNode(); final ModelNode exactlyOneNode = nestedPolicyRoot.createChildExactlyOneNode(); final AssertionSet set = policy.getAssertionSet(); final ModelNode alternativeNode = exactlyOneNode.createChildAllNode(); translate(alternativeNode, set); return nestedPolicyRoot; }
Example #24
Source File: AddressingPolicyValidator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Fitness validateServerSide(PolicyAssertion assertion) { if (!supportedAssertions.contains(assertion.getName())) return Fitness.UNKNOWN; //Make sure wsam:Addressing contains only one of the allowed nested assertions. if (assertion.getName().equals(W3CAddressingMetadataConstants.WSAM_ADDRESSING_ASSERTION)) { NestedPolicy nestedPolicy = assertion.getNestedPolicy(); if (nestedPolicy != null) { boolean requiresAnonymousResponses = false; boolean requiresNonAnonymousResponses = false; for (PolicyAssertion nestedAsser : nestedPolicy.getAssertionSet()) { if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_ANONYMOUS_NESTED_ASSERTION)) { requiresAnonymousResponses = true; } else if (nestedAsser.getName().equals(W3CAddressingMetadataConstants.WSAM_NONANONYMOUS_NESTED_ASSERTION)) { requiresNonAnonymousResponses = true; } else { LOGGER.warning("Found unsupported assertion:\n" + nestedAsser + "\nnested into assertion:\n" + assertion); return Fitness.UNSUPPORTED; } } if (requiresAnonymousResponses && requiresNonAnonymousResponses) { LOGGER.warning("Only one among AnonymousResponses and NonAnonymousResponses can be nested in an Addressing assertion"); return Fitness.INVALID; } } } return Fitness.SUPPORTED; }
Example #25
Source File: PolicyModelGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Iterates through a nested policy and returns the corresponding policy info model. * * @param parentAssertion The parent node. * @param policy The nested policy. * @return The nested policy translated to the policy info model. */ protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);
Example #26
Source File: PolicyModelGenerator.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Iterates through a nested policy and returns the corresponding policy info model. * * @param parentAssertion The parent node. * @param policy The nested policy. * @return The nested policy translated to the policy info model. */ protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);
Example #27
Source File: PolicyModelGenerator.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Iterates through a nested policy and returns the corresponding policy info model. * * @param parentAssertion The parent node. * @param policy The nested policy. * @return The nested policy translated to the policy info model. */ protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);
Example #28
Source File: PolicyModelGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Iterates through a nested policy and returns the corresponding policy info model. * * @param parentAssertion The parent node. * @param policy The nested policy. * @return The nested policy translated to the policy info model. */ protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);
Example #29
Source File: PolicyModelGenerator.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Iterates through a nested policy and returns the corresponding policy info model. * * @param parentAssertion The parent node. * @param policy The nested policy. * @return The nested policy translated to the policy info model. */ protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);
Example #30
Source File: PolicyModelGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Iterates through a nested policy and returns the corresponding policy info model. * * @param parentAssertion The parent node. * @param policy The nested policy. * @return The nested policy translated to the policy info model. */ protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);