Table C-1    Migrating Sun ONE Portal Server 3.0 Session to iPlanet Directory Server Access Management Edition 5.1 SSOToken
|
Class/Method Signature in Sun ONE Portal Server 3.0
|
Application Migration
Class Method Signature in Sun ONE Portal Server 6.0
|
Provider Migration
Class Method Signature in Sun ONE Portal Server 6.0
|
|
com.iplanet.portalserver.auth.server.Login
|
com.iplanet.authentication.spi.AuthenticationModule
|
com.sun.portal.providers.context.ProviderContext
|
|
Properties getAllTokenNames()
|
Properties getAllTokenNames()
|
|
|
String [] getAllTokens()
|
String [] getAllTokens()
|
|
|
String [] getAllTokensForState(int stateNumber)
|
String [] getAllTokensForState(int stateNumber)
|
|
|
Profile getApplicationProfile(String name)
|
AMStoreConnection.getSchema
and
AMSchema.getAttributeDefaults
|
|
|
int getAuthLevel()
|
int getAuthLevel()
|
|
|
int getCurrentState()
|
int getCurrentState()
|
|
|
Profile getDomainProfile(String name)
|
AMStoreConnection.getOrganization()
|
|
|
HttpServletRequest getHttpServletRequest()
|
HttpServletRequest getHttpServletRequest()
|
|
|
HttpServletResponse getHttpServletResponse()
|
HttpServletResponse getHttpServletResponse()
|
|
|
String getLocale()
|
String getLocale()
|
Locale getLocale()
|
|
int getNumberofStates()
|
int getNumberofStates()
|
|
|
int getNumberofTokens()
|
int getNumberofTokens()
|
|
|
int getNumberofTokensForState()
|
int getNumberofTokensForState()
|
|
|
boolean getPersistentCookieOn()
|
boolean getPersistentCookieOn()
|
|
|
String getRequestDomain
|
String getRequestOrg()
|
|
|
Session getSession()
|
SSOToken getSSOSession()
|
|
|
String getSessionId()
|
String getSessionId()
|
String getSessionID()
|
|
String getToken()
|
String getToken()
|
|
|
String getToken(String name)
|
String getToken(String name)
|
|
|
Profile getUserProfile (String name)
|
AMUser getUserProfile(String userDN)
|
|
|
String getUserSessionProperty(String name)
|
String getUserSessionProperty(String name)
|
Object getSessionProperty(String name)
|
|
abstract String getUserTokenID()
|
abstract String getUserTokenID()
|
|
|
abstract void init()
|
abstract void init()
|
|
|
void logout()
|
void logout()
|
|
|
int setAuthLevel (int auth_level)
|
int setAuthLevel (int auth_level)
|
|
|
void setDefaultURL(String url)
|
void setDefaultURL(String url)
|
|
|
void setDomain (String domain)
|
void setOrg(String orgDN)
|
|
|
void setNextScreen(int num)
|
void setNextScreen(int num)
|
|
|
void setPersistantCookieOn()
|
void setPersistantCookieOn()
|
|
|
void setReplaceText(int screenNumber, int token, String text)
|
void setReplaceText(int screenNumber, int token, String text)
|
|
|
void setReplaceText(int token, String text)
|
void setReplaceText(int token, String text)
|
|
|
void setReplaceText(int token, String[] text)
|
void setReplaceText(int token, String[] text)
|
|
|
void setUserSessionProperty(String name, String value)
|
void setUserSessionProperty(String name, String value)
|
void setSessionProperty(String name, Object val)
|
|
abstract void validate()
|
abstract void validate()
|
|
|
|
|
|
|
com.iplanet.portalserver.auth.server.LoginException
|
com.iplanet.authentication.spi.AuthenticationException
|
|
|
|
com.iplanet.authentication.spi.InvalidPasswordException
|
|
|
|
|
|
|
com.iplanet.portalserver.session.SessionListener
|
com.iplanet.sso.SSOTokenListener
|
|
|
void sessionChanged(SessionEvent evt)
|
void ssoTokenChanged(SSOTokenEvent evt)
|
|
|
com.iplanet.portalserver.session.Session
|
com.iplanet.sso.SSOToken
|
|
|
void addSessionListener (SessionListener listener)
|
void addSSOTokenListener(SSOTokenListener listener)
|
|
|
void addSessionListenerOnAllSession(SessionListener listener)
|
void addSSOTokenListener(SSOTokenListener listener)
|
|
|
void addSessionListenerOnAllSession(String server, SessionListener listener)
|
void addSSOTokenListener(SSOTokenListener listener)
|
|
|
String encodeURL(HttpServletResponse res, String url)
|
String encodeURL(String url)
|
String encodeURL(String url)
|
|
String encodeURL(String url)
|
String encodeURL(String url)
|
|
|
Profile getAppProfile (String name)
|
use the SSOToken to create an AMStoreConnection and then call AMStoreConnection.getSchema
|
|
|
String getClientDomain ()
|
use the SSOToken to create an AMStoreConnection and then call AMStoreConnection.getOrganization
|
|
|
String getClientID()
|
use com.iplanet.services.cdm.Client for client data and use getClientType to retrieve client type
|
String getClientType()
|
|
boolean getCookieSupport()
|
boolean getPersistentCookieOn()
|
|
|
int getEventType()
|
Any programs that use this API in Sun ONE Portal Server 3.0 have a race condition because there is no way to ensure that events are not missed. Replace use of this method with an SSOTokenListener object.
|
|
|
SessionID getID()
|
java.lang.String getSessionId()
|
|
|
long getIdleTime()
|
long getIdleTime()
|
|
|
long getMaxCachingTime()
|
long getMaxCachingTime()
|
|
|
long getMaxIdleTime()
|
long getMaxIdleTime()
|
|
|
long getMaxSessionTime()
|
long getMaxSessionTime()
|
|
|
String getProperty(String name)
|
String getProperty(String name)
|
|
|
static Session getSession(SessionID sid)
|
SSOToken getSSOSession()
|
|
|
int getState(boolean reset)
|
int getCurrentState()
|
|
|
long getTimeLeft()
|
long getTimeLeft()
|
|
|
int getType()
|
All publicly accessible sessions in Sun ONE Portal Server 3.0 have a session type of Session.USER_SESSION. So any application code that uses this method can assume that the method only returns Session.USER_SESSION.
|
|
|
Profile getUserProfile()
|
AMUser getUserProfile(java.lang.String userDN) throws AuthenticationException
|
|
|
Vector getValidSessions()
|
iPlanet Directory Server Access Management Edition 5.1 does not provide functionality for session (or SSO token) management. This is a planned feature for a future release.
|
|
|
Vector getValidSessions(String server)
|
iPlanet Directory Server Access Management Edition 5.1 does not provide functionality for session (or SSO token) management. This is a planned feature for a future release.
|
|
|
void logout()
|
void logout()
|
|
|
void setDebug(Debug debug, String profileName)
|
This method does the following:
Profile p = getAppProfile(profileName);
debug.setDebug(p.getAttributeString(profileName + "-debug"));
See the other entries in the table for the equivalents of getAppProfile, getAttributeString, and setDebug.
|
|
|
void setProperty(String name, String value)
|
void setProperty(String name, String value)
|
|
|
|
|
|
|
com.iplanet.portalserver.session.SessionEvent
|
com.iplanet.sso.SSOTokenManager
|
|
|
void destroySession(Session session)
|
void destroyToken(SSOToken token)
|
|
|
void refresh(boolean reset)
|
void refreshSession(SSOToken token)
|
|
|
|
|
|
|
com.iplanet.portalserver.session.SessionEvent
|
com.iplanet.sso.SSOTokenEvent
|
|
|
Session getSession()
|
SSOToken getToken()
|
|
|
long getTime()
|
long getTime()
|
|
|
int getType()
|
int getType()
|
|
|
|
|
|
|
com.iplanet.portalserver.session.SessionID
|
com.iplanet.sso.SSOTokenID
|
|
|
boolean equals(Object object)
|
boolean equals(Object object)
|
|
|
boolean getCookieMode()
|
use com.iplanet.authentication.spi and then boolean getPersistentCookieOn()
|
|
|
String getRandomString()
|
The structure of the SSO token cookie value has changed in iPlanet Directory Server Access Management Edition 5.1, hiding the internals of its structure from the application. If this value is needed, the SSOToken.setProperty method can be used to save this information and retrieve it later.
|
|
|
String getSessionDomain()
|
The structure of the SSO token cookie value has changed in iPlanet Directory Server Access Management Edition 5.1, hiding the internals of its structure from the application. If this value is needed, the SSOToken.setProperty method can be used to save this information and retrieve it later.
|
|
|
String getSessionServer()
|
The structure of the SSO token cookie value has changed in iPlanet Directory Server Access Management Edition 5.1, hiding the internals of its structure from the application. If this value is needed, the SSOToken.setProperty method can be used to save this information and retrieve it later.
|
|
|
String getSessionServerPort()
|
The structure of the SSO token cookie value has changed in iPlanet Directory Server Access Management Edition 5.1, hiding the internals of its structure from the application. If this value is needed, the SSOToken.setProperty method can be used to save this information and retrieve it later.
|
|
|
String getSessionServerProtocol()
|
The structure of the SSO token cookie value has changed in iPlanet Directory Server Access Management Edition 5.1, hiding the internals of its structure from the application. If this value is needed, the SSOToken.setProperty method can be used to save this information and retrieve it later.
|
|
|
int hashCode()
|
int hashCode()
|
|
|
String toString()
|
String toString()
|
|
|
|
|
|
|
com.iplanet.portalserver.session.SessionNotificationHandler
|
No similiar class
|
|
|
|
|
|
|
com.iplanet.portalserver.session.SessionException
|
com.iplanet.sso.SSOException
|
|