securelogin()

Secure login to an access session to InterChange Server Express for the access client.

Syntax

IInterchangeAccessSession securelogin( 
     string userName, string hashofpwd);

Parameters

userName
The name of the IBM WebSphere Business Integration Server Express user.
hashofpwd
The hash value of the password corresponding to the userName. The has value is calculated using the SHA1 algorithm. The user enters the plain text version of the password but it is the hash value that is communicated, making a more secure environment.

Exceptions

ICxAccessError
Thrown when an invalid user name or hash value of the password is encountered.

Example

// Open the access session
String userName = "admin";
String password = "passwd";
String hashofpwd = SHA1 algorithm calculated hash value of "passwd";
IInterchangeAccessSession aSession = 
     serverAccessEngine.securelogin(
     userName,
     hashofpwd);

Copyright IBM Corp. 2004, 2005