5.5 Deploying Your Custom Rule Class

  1. Create a jar file for your custom rule class and any associated classes.

  2. Copy the jar file to the following location in Identity Server:

    • Linux: /opt/novell/nam/idp/webapps/nidp/WEB-INF/lib

    • Windows: C:\Program Files (x86)\Novell\Tomcat\webapps\nidp\WEB-INF\lib

    If Identity Server is in a cluster, the file needs to be copied to all members of the cluster.

  3. In Administration Console, click Access Manager > Policies> Risk Configuration > Rules > New.

    Rule name: Specify a name that Administration Console can use to identity this custom rule

    Rule Definitions: Select the 'custom rule' to configure the custom rule

  4. Specify the following details:

    Custom class Name: Specify the name of your Java class

    Check User History: Select this option if you are using the user's history data in you custom class

    Negate Result: Select this option to reverse the output of the rule condition

    Class Property: Specify the parameters and values which will be passed to the custom class at runtime.

    Property Name: Name of the parameter.

    Value: Value of the parameter.

    Figure 5-2 Custom Rule Details

  5. Click Next, and specify the risk score for the rule.

    Rule Group: Select the group name.

    Risk Score: Specify the risk score for the custom rule.

    Privileged Rule: Select if the custom rule is a privileged rule.

  6. Click Finish > OK.

  7. Restart Identity Server.

  8. On the Identity Servers page, click Update.

  9. Update any associated devices that are using this Identity Server configuration.