Sun OpenSSO Enterprise 8.0 Developer's Guide

Setting Properties in

There are three ways to set properties in The following sections contain more information.

Setting Properties Using a Text Editor

You can set properties in by editing the file with a text editor. Each property is defined as:


Setting Properties Using the Java API

You can set properties programmatically using the class. For example:

Example 14–1 Setting Client SDK Properties Programmatically

import java.util.Properties;
public static void main(String[] args) {
        // To initialize a set of properties
        Properties props = new Properties();
        props.setProperty(”’, ”URLAccessAgent’);
        props.setProperty(”’, ”11111111’);
        SystemProperties.initializeProperties(props) ;

        // To initialize a single property
    // Application specific code ...

Setting Properties at Run Time

To set a value to a particular property at run time, declare the JVM option using the following format: