com.sun.xml.internal.ws.policy.sourcemodel.AssertionData Java Examples

The following examples show how to use com.sun.xml.internal.ws.policy.sourcemodel.AssertionData. 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: ManagementAssertionCreator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters,
        AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
    final QName name = data.getName();
    if (ManagedServiceAssertion.MANAGED_SERVICE_QNAME.equals(name)) {
        return new ManagedServiceAssertion(data, assertionParameters);
    }
    else if (ManagedClientAssertion.MANAGED_CLIENT_QNAME.equals(name)) {
        return new ManagedClientAssertion(data, assertionParameters);
    }
    else {
        return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
    }
}
 
Example #2
Source File: PolicyAssertion.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates generic assertionand stores the data specified in input parameters
 *
 * @param assertionData assertion creation data specifying the details of newly created assertion
 * @param assertionParameters collection of assertions parameters of this policy assertion. May be {@code null}.
 */
protected PolicyAssertion(final AssertionData assertionData, final Collection<? extends PolicyAssertion> assertionParameters) {
    if (assertionData == null) {
        this.data = AssertionData.createAssertionData(null);
    } else {
        this.data = assertionData;
    }
    this.parameters = AssertionSet.createAssertionSet(assertionParameters);
}
 
Example #3
Source File: ManagementAssertionCreator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters,
        AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
    final QName name = data.getName();
    if (ManagedServiceAssertion.MANAGED_SERVICE_QNAME.equals(name)) {
        return new ManagedServiceAssertion(data, assertionParameters);
    }
    else if (ManagedClientAssertion.MANAGED_CLIENT_QNAME.equals(name)) {
        return new ManagedClientAssertion(data, assertionParameters);
    }
    else {
        return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
    }
}
 
Example #4
Source File: PolicyAssertion.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates generic assertionand stores the data specified in input parameters
 *
 * @param assertionData assertion creation data specifying the details of newly created assertion
 * @param assertionParameters collection of assertions parameters of this policy assertion. May be {@code null}.
 */
protected PolicyAssertion(final AssertionData assertionData, final Collection<? extends PolicyAssertion> assertionParameters) {
    if (assertionData == null) {
        this.data = AssertionData.createAssertionData(null);
    } else {
        this.data = assertionData;
    }
    this.parameters = AssertionSet.createAssertionSet(assertionParameters);
}
 
Example #5
Source File: ManagementAssertion.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example #6
Source File: ManagementAssertionCreator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters,
        AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
    final QName name = data.getName();
    if (ManagedServiceAssertion.MANAGED_SERVICE_QNAME.equals(name)) {
        return new ManagedServiceAssertion(data, assertionParameters);
    }
    else if (ManagedClientAssertion.MANAGED_CLIENT_QNAME.equals(name)) {
        return new ManagedClientAssertion(data, assertionParameters);
    }
    else {
        return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
    }
}
 
Example #7
Source File: ManagementAssertionCreator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters,
        AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
    final QName name = data.getName();
    if (ManagedServiceAssertion.MANAGED_SERVICE_QNAME.equals(name)) {
        return new ManagedServiceAssertion(data, assertionParameters);
    }
    else if (ManagedClientAssertion.MANAGED_CLIENT_QNAME.equals(name)) {
        return new ManagedClientAssertion(data, assertionParameters);
    }
    else {
        return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
    }
}
 
Example #8
Source File: ManagementAssertion.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example #9
Source File: ManagementAssertion.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example #10
Source File: ManagementAssertionCreator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters,
        AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
    final QName name = data.getName();
    if (ManagedServiceAssertion.MANAGED_SERVICE_QNAME.equals(name)) {
        return new ManagedServiceAssertion(data, assertionParameters);
    }
    else if (ManagedClientAssertion.MANAGED_CLIENT_QNAME.equals(name)) {
        return new ManagedClientAssertion(data, assertionParameters);
    }
    else {
        return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
    }
}
 
Example #11
Source File: ManagementAssertion.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example #12
Source File: PolicyAssertion.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates generic assertionand stores the data specified in input parameters
 *
 * @param assertionData assertion creation data specifying the details of newly created assertion
 * @param assertionParameters collection of assertions parameters of this policy assertion. May be {@code null}.
 */
protected PolicyAssertion(final AssertionData assertionData, final Collection<? extends PolicyAssertion> assertionParameters) {
    if (assertionData == null) {
        this.data = AssertionData.createAssertionData(null);
    } else {
        this.data = assertionData;
    }
    this.parameters = AssertionSet.createAssertionSet(assertionParameters);
}
 
Example #13
Source File: PolicyAssertion.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates generic assertionand stores the data specified in input parameters
 *
 * @param assertionData assertion creation data specifying the details of newly created assertion
 * @param assertionParameters collection of assertions parameters of this policy assertion. May be {@code null}.
 */
protected PolicyAssertion(final AssertionData assertionData, final Collection<? extends PolicyAssertion> assertionParameters) {
    if (assertionData == null) {
        this.data = AssertionData.createAssertionData(null);
    } else {
        this.data = assertionData;
    }
    this.parameters = AssertionSet.createAssertionSet(assertionParameters);
}
 
Example #14
Source File: PolicyAssertion.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates generic assertionand stores the data specified in input parameters
 *
 * @param assertionData assertion creation data specifying the details of newly created assertion
 * @param assertionParameters collection of assertions parameters of this policy assertion. May be {@code null}.
 */
protected PolicyAssertion(final AssertionData assertionData, final Collection<? extends PolicyAssertion> assertionParameters) {
    if (assertionData == null) {
        this.data = AssertionData.createAssertionData(null);
    } else {
        this.data = assertionData;
    }
    this.parameters = AssertionSet.createAssertionSet(assertionParameters);
}
 
Example #15
Source File: ManagementAssertionCreator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters,
        AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
    final QName name = data.getName();
    if (ManagedServiceAssertion.MANAGED_SERVICE_QNAME.equals(name)) {
        return new ManagedServiceAssertion(data, assertionParameters);
    }
    else if (ManagedClientAssertion.MANAGED_CLIENT_QNAME.equals(name)) {
        return new ManagedClientAssertion(data, assertionParameters);
    }
    else {
        return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
    }
}
 
Example #16
Source File: ManagementAssertion.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example #17
Source File: PolicyAssertion.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates generic assertionand stores the data specified in input parameters
 *
 * @param assertionData assertion creation data specifying the details of newly created assertion
 * @param assertionParameters collection of assertions parameters of this policy assertion. May be {@code null}.
 */
protected PolicyAssertion(final AssertionData assertionData, final Collection<? extends PolicyAssertion> assertionParameters) {
    if (assertionData == null) {
        this.data = AssertionData.createAssertionData(null);
    } else {
        this.data = assertionData;
    }
    this.parameters = AssertionSet.createAssertionSet(assertionParameters);
}
 
Example #18
Source File: ManagedServiceAssertion.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public ManagedServiceAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(MANAGED_SERVICE_QNAME, data, assertionParameters);
}
 
Example #19
Source File: ComplexAssertion.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected ComplexAssertion(final AssertionData data, final Collection<? extends PolicyAssertion> assertionParameters, final AssertionSet nestedAlternative) {
    super(data, assertionParameters);

    AssertionSet nestedSet = (nestedAlternative != null) ? nestedAlternative : AssertionSet.emptyAssertionSet();
    this.nestedPolicy = NestedPolicy.createNestedPolicy(nestedSet);
}
 
Example #20
Source File: PolicyAssertion.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected PolicyAssertion() {
    this.data = AssertionData.createAssertionData(null);
    this.parameters =  AssertionSet.createAssertionSet(null);
}
 
Example #21
Source File: PolicyAssertion.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected PolicyAssertion() {
    this.data = AssertionData.createAssertionData(null);
    this.parameters =  AssertionSet.createAssertionSet(null);
}
 
Example #22
Source File: ComplexAssertion.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected ComplexAssertion(final AssertionData data, final Collection<? extends PolicyAssertion> assertionParameters, final AssertionSet nestedAlternative) {
    super(data, assertionParameters);

    AssertionSet nestedSet = (nestedAlternative != null) ? nestedAlternative : AssertionSet.emptyAssertionSet();
    this.nestedPolicy = NestedPolicy.createNestedPolicy(nestedSet);
}
 
Example #23
Source File: ComplexAssertion.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected ComplexAssertion(final AssertionData data, final Collection<? extends PolicyAssertion> assertionParameters, final AssertionSet nestedAlternative) {
    super(data, assertionParameters);

    AssertionSet nestedSet = (nestedAlternative != null) ? nestedAlternative : AssertionSet.emptyAssertionSet();
    this.nestedPolicy = NestedPolicy.createNestedPolicy(nestedSet);
}
 
Example #24
Source File: ManagedClientAssertion.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public ManagedClientAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(MANAGED_CLIENT_QNAME, data, assertionParameters);
}
 
Example #25
Source File: ManagedClientAssertion.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public ManagedClientAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(MANAGED_CLIENT_QNAME, data, assertionParameters);
}
 
Example #26
Source File: ManagedClientAssertion.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public ManagedClientAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(MANAGED_CLIENT_QNAME, data, assertionParameters);
}
 
Example #27
Source File: SimpleAssertion.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected SimpleAssertion(AssertionData data, Collection<? extends PolicyAssertion> assertionParameters) {
    super(data, assertionParameters);
}
 
Example #28
Source File: SimpleAssertion.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected SimpleAssertion(AssertionData data, Collection<? extends PolicyAssertion> assertionParameters) {
    super(data, assertionParameters);
}
 
Example #29
Source File: SimpleAssertion.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected SimpleAssertion(AssertionData data, Collection<? extends PolicyAssertion> assertionParameters) {
    super(data, assertionParameters);
}
 
Example #30
Source File: ComplexAssertion.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected ComplexAssertion(final AssertionData data, final Collection<? extends PolicyAssertion> assertionParameters, final AssertionSet nestedAlternative) {
    super(data, assertionParameters);

    AssertionSet nestedSet = (nestedAlternative != null) ? nestedAlternative : AssertionSet.emptyAssertionSet();
    this.nestedPolicy = NestedPolicy.createNestedPolicy(nestedSet);
}