Replacement for createSSOToken(principal, password) in AM 7.1?

I'm currently in charge of maintaining an application that was written to work with AM 6.0 as part of the JES 2004Q2 stack. When the application initializes we do a directory connection as follows:

SSOToken token = null;

try {

token = SSOTokenManager.getInstance().createSSOToken(

principal,

password);

} catch (Exception e) {

throw new EGatewayException( logger,

"Unable to create SSO Token for user",

e);

}

makeConnection(token);

However, with the new AMSDK for AM 7.1 the createSSOToken method has been deprecated and I'm having trouble finding the code that should be replacing that.

Any help is appreciated.

Thanks!

Robert LaBarre

[735 byte] By [rlabarre07a] at [2007-11-27 8:03:10]
# 1

You need to use AuthContext APIs to log the user in.

http://docs.sun.com/source/819-4682/index.html

You could refer to samples for sample code.

https://opensso.dev.java.net/source/browse/opensso/products/amserver/samples/cl ientsdk/source/com/sun/identity/samples/clientsdk/

shivaram

shivarambhata at 2007-7-12 19:45:17 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
So then basically do an authenticate with the user and password and get the AuthContext back. Then get the SSOToken from the AuthContext correct?
rlabarre07a at 2007-7-12 19:45:17 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
yes. thanks.
shivarambhata at 2007-7-12 19:45:17 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
Thanks very much for your assistance.
rlabarre07a at 2007-7-12 19:45:17 > top of Java-index,Web & Directory Servers,Directory Servers...