To authenticate a SiteMinder administrator, use the login() method in the SmApiSession class of the Utilities package. This method uses the administrator’s login credentials (username and password) to authenticate the administrator. Calling this login() method obtains a session specification and returns an SmApiResult object.
The syntax of the login() method is as follows:
result=mySession.login (username, password, IPaddress, challengeReason);
Provide a value for the challengeReason parameter as follows:
To retrieve the reason value to assign to challengeReason, call getReason() in the SmApiResult object.
To obtain a new session specification for a user, use the Java Agent API to obtain a session specification. Then, create an SmApiSession object and associate the session specification with that object.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |