My Oracle Support Banner

How to Create a Custom Policy Assertion in OWSM 11g (Doc ID 1164364.1)

Last updated on AUGUST 19, 2022

Applies to:

Oracle Web Services Manager - Version to [Release 11gR1]
Information in this document applies to any platform.


Part of SOA SUITE 11.1.1.X,  Oracle Web Service Manager (OWSM) comes with predefined assertion templates. But it is possible to create custom assertions.
This document will show how to create a custom policy assertion and then attach that new policy to a service.

The steps shown in this note is covered in the following Oracle documentation.

Oracle Fusion Middleware Security and Administrator's Guide for Web Services 11g Release 1 (11.1.1) Part Number B32511-03
14 Creating Custom Assertions

In this example we are using a custom policy - ip assertion policy which would validate whether the request that is made to the web service is from a set of ips that have been identified as valid ips.
All steps in this example are done using JDeveloper and WebLogic server 10.3.3.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Step 1: Create the Custom Assertion Class
 Step 2: Create the policy-config.xml File
 Step 3: Create the Custom Policy File
 4. Create the custom assertion JAR and deploy to JAR file
 Step 5: Update Your CLASSPATH
 Step 6: Import the Custom Policy File
 Step 7: Import the Custom Policy File
 Step 8: Test the service

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.