Hello, Edward. You may find the attached Custom Assertion project plugin for Eclipse useful.
Note: This plugin is not a supported CA product. It was developed by the community. Use at your own risk, and post questions here, and don't contact CA support for questions or issues related to the use of this plugin.
Use this plugin by adding it to your Eclipse dropins folder. This can be easier to find on some platforms than on others. On Mac, you'll find it in your Eclipse.app directory:
Start (or restart, if already running) Eclipse, and create a new project:
Under the CA API Management category, select CA API Management Custom Assertion Project, and click Next:
Make changes to fields in the form to accelerate creation of a unique custom assertion and/or click the Finish button:
This will result in a custom assertion project that is ready to be built with Ant, and that demonstrates taking two strings as input, converting both to upper case and concatenating them together, and returning the result in an output context variable:
The project will use your workspace's default JRE:
For custom assertions that will be run on v8.4 or above gateways, you must use a Java 8 (a.k.a. 1.8) version. For custom assertions that will be run on v8.0 to v8.3, you must use a Java 7 (a.k.a. 1.7) version of Java. This change can be made to in your project's Java Build Path settings. For earlier version of the gateway, you should use an earlier version of the plugin (not attached, but can attach upon request).
Build your project by selecting the build.xml file in the project's root directory, right click to open its context menu, select Run As, and Ant Build:
This will result in a corresponding .jar file in a build folder in the project's root directory:
Deploy the .jar file to your gateway's /opt/SecureSpan/Gateway/runtime/modules/lib file and change its ownership to layer7:layer7, then restart your gateway. Your custom assertion should now be available in the policy assertion pallet.