Table C-1 Migrating Sun ONE Portal Server 3.0 Session to Sun ONE Identity Server SSOToken
Class/Method Signature in Sun ONE Portal Server 3.0
|
Application Migration
Class Method Signature in Sun ONE Portal Server 6.2
|
Provider Migration
Class Method Signature in Sun ONE Portal Server 6.2
|
com.iplanet. portalserverauth.server. Login
|
com.sun.identity.authentication.spi.AMLoginModule
|
com.sun.portal.providers. context.ProviderContext
|
Properties getAllTokenNames()
|
No equivalent available in JAAS based authentication framework.
|
|
String [] getAllTokens()
|
No equivalent available in JAAS based authentication framework.
|
|
String [] getAllTokensForState (int stateNumber)
|
No equivalent available in JAAS based authentication framework.
|
|
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()
|
No equivalent available in JAAS based authentication framework.
|
|
int getNumberofTokensForState()
|
No equivalent available in JAAS based authentication framework.
|
|
boolean getPersistentCookieOn()
|
boolean getPersistentCookieOn()
|
|
String getRequestDomain
|
String getRequestOrg()
|
|
Session getSession()
|
SSOToken getSSOSession()
|
|
String getSessionId()
|
String getSessionId()
|
String getSessionID()
|
String getToken()
|
No equivalent available in JAAS based authentication framework.
|
|
String getToken (String name)
|
No equivalent available in JAAS based authentication framework.
|
|
Profile getUserProfile (String name)
|
AMUser AMStoreConnecion getUser(String userDN) throws Authentication.Exception
|
|
String getUserSessionProperty (String name)
|
String getUserSessionProperty (String name)throws javax.security.auth.login.Login.Expception
|
Object getSessionProperty (String name)
|
abstract String getUserTokenID()
|
javax.security.Principal getPrincipal()
|
|
abstract void init()
|
abstract void init(javax.security.auth.Subject subject,java.util.Map sharedState, java.util.Map options)
|
|
void logout()
|
void logout()
|
|
int setAuthLevel (int auth_level)
|
boolean setAuthLevel (int auth_level
|
|
void setDefaultURL (String url)
|
void setLoginSuccessURL(String url)
void setLoginFailureURL(String url)
|
|
void setDomain (String domain)
|
Not supported.
|
|
void setNextScreen(int num)
|
No equivalent available in JAAS based authentication framework.
|
|
void setPersistantCookieOn()
|
boolesn setPersistantCookieOn()
|
|
void setReplaceText (int screenNumber, int token, String text)
|
void replaceCallback(int state, int index, javax.security.callback. Callback)
To replace header text, the REPLACE text can be specified in the module properties XML file. Then the module can all
void replaceHeader(int state, String header) which throws javax.security.auth.login.LoginException
|
|
void setReplaceText (int token, String text)
|
void replaceCallback(int state, int index, javax.security.callback. Callback)
To replace header text, the REPLACE text can be specified in the module properties XML file. Then the module can all
void replaceHeader (int state, String header) which throws javax.security.auth.login. LoginException
|
|
void setReplaceText(int token, String[] text)
|
void replaceCallback(int state, int index, javax.security.callback. Callback)
To replace header text, the REPLACE text can be specified in the module properties XML file. Then the module can all
void replaceHeader(int state, String header) which throws javax.security.auth.login. LoginException
|
|
void setUserSessionProperty (String name, String value)
|
void setUserSessionProperty(String name, String value) throws javax.security.auth.login.LoginException
|
void setSessionProperty(String name, Object val)
|
abstract void validate()
|
int process(javax.security.auth.callback.Callback[] callback, int state)
|
|
|
|
|
com.iplanet.portalserver. auth.server.LoginException
|
javax.security.auth.login.LoginExceptio
|
|
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 SSOToken.getPrincipal(). getName()
|
ProviderContext.getUserID method
|
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 AMStoreConnection.getUser(String userDN) throws AuthenticationException
|
|
Vector getValidSessions()
|
Sun ONE Identity Server does not provide functionality for session (or SSO token) management. This is a planned feature for a future release.
|
|
Vector getValidSessions(String server)
|
Sun ONE Identity Server 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 iSun ONE Identity Server, 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 Sun ONE Identity Server, 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 Sun ONE Identity Server, 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 Sun ONE Identity Server, 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 Sun ONE Identity Server, 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
|
|