Previous Topic: Initialize the CA SiteMinder Agent API

Next Topic: Initialize the XML Agent Content Helper API

CA SiteMinder Agent API Required Code Block

The following static block of code must be included in any implementation of the CA SiteMinder Agent API class. This code should not be placed within a method:

static{
		InetAddress clientAddress;
		String clientAddressString;
		try {
			clientAddress = InetAddress.getLocalHost();
			clientAddressString = clientAddress.getHostAddress();
		}
		catch (Exception e) {
			clientAddressString = "123.123.123.123";
		}
}


Copyright © 2009 CA. All rights reserved. Email CA about this topic