This appendix provides the XML schema for reference when creating a WS-Policy file that contains custom Web service assertions. Sections include:
The following graphic describes the element hierarchy of the custom assertions in the WS-Policy file.
Figure E-1 Element Hierarchy of Custom Assertion
The following sections describe the elements in the custom assertion in more detail.
Groups nested policy assertions.
The following table summarizes the Oracle extensions to the WS-Policy attributes.
Table E-1 Oracle Extensions to WS-Policy Attributes
Attribute | Description |
---|---|
attachTo |
Policy subjects to which the policy can be attached. Valid values include:binding.client, binding.server, binding.any. |
category |
Category of the policy. Valid values include: security, mtom, wsrm, addressing, and management. |
description |
Description of the policy. |
status |
Status of the policy reference. Valid values include: enabled and disabled. |
<wsp:Policy xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:orasp="http://schemas.oracle.com/ws/2006/01/securitypolicy" orawsp:status="enabled" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" orawsp:category="security" orawsp:attachTo="binding.server" wsu:Id="ip_assertion_policy" xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" wsp:Name="oracle/ip_assertion_policy">
Main element of the custom assertion.
The following table summarizes the attributes of the orasp:Assertion element.
Table E-2 Attributes of <orasp:Assertion> Element
Attribute | Description |
---|---|
Optional |
Flag that specifies whether the assertion is optional or required. |
Silent |
Flag that specifies whether the assertion is advertised. If set to true, the assertion is not advertised. |
Enforced |
Flag that specifies whether the assertion is currently enabled. |
name |
Name of the assertion. |
description |
Description of the assertion. |
category |
Category to which the assertion applies. Valid values include: security/authentication, security/msg-protection, security/authorization, security/logging, mtom, wsrm, addressing, and management. |
The <oraswsp:Implementation> element defines the custom assertion implementation class.
The <oraswsp:Config> element defines the configuration for the custom assertion.
The following table summarizes the attributes of the orawsp:Config element.
Table E-3 Attributes of <orawsp:Config> Element
Attribute | Description |
---|---|
name |
Name of the configuration. |
type |
Category to which the configuration applies. |
configType |
Configuration type. Valid values include: declarative and programmatic.
|
The <oraswsp:PropertySet> element groups nested properties.
The <oraswsp:Property> element defines a single property.
The following table summarizes the attributes of the orawsp:Property element.
Table E-5 Attributes of <orawsp:Property> Element
Attribute | Description |
---|---|
name |
Name of the property. |
type |
Type of the property. For example, string. |
contentType |
Specifies whether the property is required and can be overridden. Valid values include:
For information about overriding policies, see "Attaching Client Policies Permitting Overrides". |