The policy extension can be delivered as a JAR file or a ZIP file.
To install an extension, you need to have access to the JAR file and know the following information about the extension or extensions contained within the file:
What you need to create |
|
What you need to know |
|
|
Authorization Policy: You can use it to return the following:
Identity Injection Policy: A data extension that retrieves data for injecting into a header. Identity Role Policy: You can use it to return the following:
External Attribute Source Policy: A data extension that retrieves attributes from external sources. |
If the file contains more than one extension, create a configuration for each extension in the file.
Copy the JAR file to a location that you can browse to from Administration Console.
Click Policies > Extensions.
Click Upload > Browse, select the file, and click Open.
(Conditional) If you want this JAR file to overwrite an existing version of the file, select Overwrite existing *.jar file.
Click OK.
The file is uploaded to Administration Console, but nothing is visible on the Extensions page until you create a configuration.
To create an extension configuration, click New, and specify the following details:
Name: Specify a display name for the extension.
Description: (Optional) Specify the purpose of the extension and how it must be used.
Policy Type: Select the type of extension you have uploaded.
Type: Select the data type of the extension.
Class Name: Specify the name of the class that creates the extension, such as com.acme.policy.action.successActionFactory.
File Name: Select the JAR file that contains the Java class that implements the extension and its corresponding factory. This must be the file you uploaded in Step 3.
Click OK.
(Conditional) If the extension requires data from Access Manager, click the extension name.
In the Configuration Parameters section, click New, specify a name and ID, and click OK.
The developer of the extension must supply the name and ID that the extension requires.
In the Mapping column, select the required data type.
The developer of the extension must supply the data type that is required. If the data type is a data string, then the developer needs to explain the type of information you need to supply in the text field.
(Conditional) If the extension requires more than one data item, repeat Step 9 and Step 10.
Click OK.
The extension is now available for the policy type it was created for.
(Conditional) If the class can be used for multiple policy types, you need to create an extension configuration for each policy type.
For example, if an extension can be used for both an Identity Injection policy and a Role policy, you need to create an entry for both. The File Name option must contain the same value, but the other options must contain unique values.
Continue with Distributing a Policy Extension.
A ZIP file with an exported extension contains both the JAR file and the extension configuration.
Copy the ZIP file to a location that you can browse to from Administration Console.
Click Policies > Extensions.
Click Upload > Browse, select the file, and click Open.
(Conditional) If you want the JAR file in the import to overwrite an existing version of the file, select Overwrite existing *.jar file.
Click OK.
(Conditional) If the extension requires some customizing, click the name of the extension and follow the instructions that came with the extension.
Continue with Distributing a Policy Extension.