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 11.1.1.1 to 11.1.1.7.0 [Release 11gR1]
Information in this document applies to any platform.

Goal

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
https://docs.oracle.com/cd/E14571_01/web.1111/b32511/custom_assertions.htm#WSSEC1244


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 11.1.1.3 and WebLogic server 10.3.3.

Solution

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
Goal
Solution
 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.