The first step in creating a custom assertion generator plug-in is to implement the AssertionGeneratorPlugin interface. The following requirements apply to the implementation class:
Note: The folder federation_sdk_home\sample\com\ca\federation\sdk\plugin\sample includes two sample implementation classes.
After you have coded your implementation class for the AssertionGeneratoPlugin interface, compile it and verify that CA SiteMinder® Federation can find your executable file.
To deploy the assertion generator plug-in
Windows: build_plugin.bat
UNIX: build_plugin.sh
A compiled sample plug-in, fedpluginsample.jar, is in the directory federation_sdk_home\jar.
You can place the plug-in jar in any directory and have the JVMOptions.txt file point to it. To use the sample plug-in, modify the classpath to point to fedpluginsample.jar; however, do not modify the classpath for smapi.jar.
Note: To use Apache Xerces or Xalan in your plug-in, use the Xerces or Xalan binary files installed with CA SiteMinder® Federation. The binaries are not installed with the CA SiteMinder® Federation SDK. Using these files is necessary for compatibility reasons.
Restarting the services helps ensure that CA SiteMinder® Federation uses the latest version of the assertion generator plug-in.
After writing an assertion generator plug-in and compiling it, you enable the plug-in by configuring settings in the CA SiteMinder® Federation UI. The UI parameters let CA SiteMinder® Federation know where to find the plug-in.
Do not configure the plug-in settings until you deploy the plug-in.
To enable the Assertion Generator plug-in
Specifies the Java class name of the plug-in. Enter a name. This plug-in is invoked at run time.
Example: com.mycompany.assertiongenerator.AssertionSample
The plug-in class can parse and modify the assertion, and then return the result to CA SiteMinder® Federation for final processing. Specify an Assertion Generator plug-in for each relying party. A compiled sample plug-in is included in the SDK. You can view complied sample assertion plug-ins in the directory federation_sdk_home/jar.
Note: You can also view the source code for the CA SiteMinder® Federation sample plug-ins in the directory federation_sdk_home\sample\com\ca\federation\sdk\plugin\sample.
(Optional). Specifies the string that CA SiteMinder® Federation passes to the plug-in as a parameter at run time. The string can contain any value; there is no specific syntax to follow.
The plug-in interprets the parameters that it receives. For example, the parameter could be the name of an attribute or the string can contain an integer that instructs the plug-in to do something.
Reference information (method signatures, parameters, return values, data types), and the constructor for UserContext class and the APIContext class, are in the Javadoc Reference. Refer to the AssertionGeneratorPlugin interface in the Javadoc.
Copyright © 2014 CA.
All rights reserved.
|
|