Attaching Policies to Oracle Infrastructure Web Services 2-3
There is a set of predefined Oracle WSM policies and assertion templates that are automatically available when you install Oracle Fusion Middleware. The predefined
policies are based on common best practice policy patterns used in customer deployments.
You can immediately begin attaching these predefined policies to your Web services or clients. You can configure the predefined policies or create a new policy by making
a copy of one of the predefined policies.
Predefined policies are constructed using assertions based on predefined assertion templates. You can create new assertion templates, as required.
For more information about the predefined Oracle WSM policies and assertion templates, see the following sections in Security and Administrators Guide for Web
Services:
■
Predefined Policies
■
Predefined Assertion Templates
2.4 Attaching Policies to Web Services Using Annotations
You can use annotations defined in Table 2–2
to attach policies to Web services. The annotations are included in the oracle.webservices.annotations and
oracle.webservices.annotations.async packages. For more information about the annotations available, see Oracle Fusion Middleware
Java API Reference for Oracle Web Services. For more information about the predefined policies, see Predefined Polices in Security and Administrators Guide for Web Services.
Table 2–2 Annotations for Attaching Policies to Web Services
Annotation Description
AddressingPolicy Attaches a WS-Addressing policy to the Web service. For more information, see
Section A.2, AddressingPolicy Annotation .
CallbackManagementPolicy Attaches a management policy to the callback client of the asynchronous Web
service that will connect to the callback service. For more information, see Section A.7, CallbackManagementPolicy Annotation
. CallbackMtomPolicy
Attaches an MTOM policy to the callback client of the asynchronous Web service that will connect to the callback service. For more information, see
Section A.9, CallbackMtomPolicy Annotation
. CallbackSecurityPolicy
Attaches one or more security polices to the callback client of the asynchronous Web service that will connect to the callback service. By default, no security
policies are attached. For more information, see Section A.11,
CallbackSecurityPolicy Annotation .
ManagementPolicy Attaches a management policy to the Web service. For more information, see
Section A.12, ManagementPolicy Annotation .
MtomPolicy Attaches an MTOM policy to the Web service. For more information, see
Section A.13, MtomPolicy Annotation .
SecurityPolicies Specifies an array of SecurityPolicy annotations. Use this annotation if you want
to attach more than one WS-Policy files to a class. For more information, see Section A.19, SecurityPolicies Annotation
. SecurityPolicy
Attaches a security policy to the Web service. For more information, see Section A.20, SecurityPolicy Annotation
.
2-4 Concepts Guide for Oracle Infrastructure Web Services
2.5 Attaching Policies Using Oracle JDeveloper