The WS-Federation Assertion Generator produces SAML assertions. Assertions are the basis for user authentication in a federated environment. You can customize the content of the SAML assertion by configuring an Assertion Generator plug-in. Using this plug-in, you can modify the assertion content for your business agreements between partners and vendors.
To use the WS-Federation Assertion Generator plug-in
A sample class, AssertionSample.java, can be found in sdk/samples/assertiongeneratorplugin.
Note: Specify an Assertion Generator plug-in for each Resource Partner.
For example, com.mycompany.assertiongenerator.AssertionSample
A sample plug-in is included in the SDK. You can view the sample assertion plug-in at sdk/samples/assertiongeneratorplugin.
The string can contain any value; there is no specific syntax to follow.
Note: For reference information about the WS-Federation Assertion Generator plug-in, see the AssertionGeneratorPlugin interface in the Javadoc Reference. This information applies to the WS-Federation Assertion Generator and the SAML Assertion Generator. For overview and conceptual information, see the SiteMinder Programming Guide for Java.
The first step in creating a custom assertion generator plug-in is to implement the AssertionGeneratorPlugin interface.
Follow these steps:
The implementation must include a call to the customizeAssertion methods. You can overwrite the existing implementations. See the following sample classes for examples:
AssertionSample.java
SAML2AssertionSample.java
The sample classes are located in the directory /sdk/samples/assertiongeneratorplugin.
Note: The contents of the parameter string that your implementation passes into the customizeAssertion method is the responsibility of the custom object.
After you have coded your implementation class for the AssertionGeneratorPlugin interface, compile it and verify that SiteMinder can find your executable file.
To deploy the assertion generator plug-in
Compilation requires the following .jar files, which are installed with the Policy Server:
Note: Do not modify the classpath for xercesImpl.jar, xalan.jar, or SMJavaApi.jar.
Copyright © 2012 CA.
All rights reserved.
|
|