Lines Matching refs:session

34 import static org.forgerock.openam.session.SessionConstants.*;
84 import com.iplanet.dpro.session.SessionException;
85 import com.iplanet.dpro.session.SessionID;
86 import com.iplanet.dpro.session.service.InternalSession;
116 import com.sun.identity.session.util.SessionUtils;
131 * OpenAM system or the session is destroyed by any privileged application of
179 // App session timeout is default to 0 => non-expiring
216 private InternalSession session = null;
352 * session.
363 * Attempts to load the configured session property upgrader class.
422 * Returns session, Returns null if session state is <code>INACTIVE</code>
425 * @return session;
428 if (session == null || session.getState() == INACTIVE ||
429 session.getState() == DESTROYED) {
432 "Session is null OR INACTIVE OR DESTROYED :" + session);
436 return session;
440 * Sets the internal session for the request.
442 * @param sess Internal session for the request.
445 this.session = sess;
454 * Sets the session id, independently of the session. Used by stateless session activation to update the
455 * serialised session id while leaving the InternalSession null.
457 * @param sid the new session id to set.
924 * Returns session idle time.
926 * @return session idle time.
933 * Returns session cache time.
935 * @return session cache time.
1107 * Activates session on successful authenticaton.
1111 * @return true if user session is activated successfully
1119 * Activates session on successful authentication.
1121 * Unless the noSession query parameter was set on the request and then in that case no new permanent session is
1127 * @return <code>true</code> if user session is activated successfully, <code>false if failed to activated</code>
1144 session, subject, loginContext);
1151 DEBUG.error("Error setting session properties: ", ae);
1154 DEBUG.error("Error activating session: ", e);
1165 DEBUG.message("Using stateful session activation for super admin");
1180 public void setOldStatelessSession(StatelessSession session) {
1181 this.oldStatelessSession = session;
1185 * Populates session with properties.
1187 * @param session
1190 public void setSessionProperties(InternalSession session) throws AuthException {
1193 session + " \nrequest token = " + token);
1279 "Resetting session upgrade to false " +
1291 "Resetting session upgrade to false " +
1301 session = oldSession;
1352 //Sets the User profile option used, in session.
1361 session.putProperty(ISAuthConstants.USER_PROFILE, userProfile);
1370 session.putProperty(ISAuthConstants.LOGIN_URL, defaultLoginURL);
1371 session.putProperty(ISAuthConstants.FULL_LOGIN_URL, loginURL);
1377 session.putProperty(ISAuthConstants.SUCCESS_URL, sessionSuccessURL);
1417 session.setClientID(token);
1418 session.setType(APPLICATION_SESSION);
1425 session.setMaxSessionTime(Long.MAX_VALUE / 60);
1426 session.setMaxIdleTime(AGENT_SESSION_IDLE_TIME);
1427 session.setMaxCachingTime(AGENT_SESSION_IDLE_TIME);
1430 DEBUG.message("setSessionProperties for non-expiring session");
1432 session.setExpire(false);
1436 session.setClientID(userDN);
1437 session.setType(USER_SESSION);
1438 session.setMaxSessionTime(maxSession);
1439 session.setMaxIdleTime(idleTime);
1440 session.setMaxCachingTime(cacheTime);
1443 session.setClientDomain(getOrgDN());
1445 session.putProperty(ISAuthConstants.HOST, client);
1448 session.putProperty(ISAuthConstants.AUTH_LEVEL,
1450 session.putProperty(ISAuthConstants.AUTH_TYPE, authMethName);
1452 session.putProperty(ISAuthConstants.PRINCIPAL, userDN);
1460 session.putProperty(ISAuthConstants.USER_ID, userId);
1461 session.putProperty(ISAuthConstants.USER_TOKEN, token);
1462 session.putProperty(ISAuthConstants.ORGANIZATION, getOrgDN());
1463 session.putProperty(ISAuthConstants.LOCALE,
1465 session.putProperty(ISAuthConstants.CHARSET,
1467 session.putProperty(ISAuthConstants.CLIENT_TYPE, getClientType());
1468 session.putProperty(ISAuthConstants.COOKIE_SUPPORT_PROPERTY,
1470 session.putProperty(ISAuthConstants.AUTH_INSTANT, authInstant);
1472 session.putProperty(ISAuthConstants.MODULE_AUTH_TIME,
1476 session.putProperty(ISAuthConstants.PRINCIPALS, principalList);
1479 session.putProperty(ISAuthConstants.INDEX_TYPE,
1484 session.putProperty(Constants.UNIVERSAL_IDENTIFIER, univId);
1486 session.putProperty(Constants.UNIVERSAL_IDENTIFIER, userDN);
1492 session.putProperty(ISAuthConstants.ROLE, indexName);
1500 session.putProperty(ISAuthConstants.SERVICE,
1538 session.putProperty(
1543 session.putProperty(
1566 session.putProperty(attrName, attrValue);
1631 /* destroy session */
1633 if (session != null) {
1637 session = null;
1659 * Enables AM session cookie time to live
1661 * @param flag if <code>true</code> enables AM session cookie time to live,
1662 * otherwise disables AM session cookie time to live
1673 * Checks whether AM session cookie time to live is enabled
1675 * @return <code>true</code> if AM session cookie time to live
1687 * Returns AM session cookie time to live
1689 * @return AM session cookie time to live in seconds
1700 * Sets AM session cookie time to live
1702 * @param timeToLive AM session cookie time to live in seconds
1798 DEBUG.error("Exception creating session .. :", e);
1821 /* create new session */
1826 DEBUG.message("LoginState: createSession: Creating new session: ");
1830 session = LazyConfig.AUTHD.newSession(getOrgDN(), null, false);
1832 sid = session.getID();
1833 session.setObject(ISAuthConstants.AUTH_CONTEXT_OBJ, authContext);
1838 "LoginState:createSession: New session/sid=" + sid);
1839 DEBUG.message("LoginState:New session: ac=" + authContext);
1844 * Returns the single sign on token associated with the session.
1846 * @return the single sign on token associated with the session.
1850 if (!stateless && (session == null || session.getState() == INACTIVE)) {
1879 * the AM cookie if session is active/inactive and
1906 if (session == null) {
1911 if (!useAMCookie && session.getState() == INVALID) {
1917 encodedURL = session.encodeURL(
1920 encodedURL = session.encodeURL(
2071 // retrieve the session attributes for the default role
2127 DEBUG.message("default max session time: " + sessionAttrs[0]
2407 DEBUG.message("retrieving session service from role");
2411 if (oc != null && oc.contains("iplanet-am-session-service")) {
2417 DEBUG.message("retrieving session service from user");
2420 if (oc != null && oc.contains("iplanet-am-session-service")) {
3243 //if not try to retrieve it from session property
3245 if ((postProcessGoto == null) && (session != null))
3247 session.getProperty(ISAuthConstants.POST_PROCESS_SUCCESS_URL);
4158 DEBUG.error("Exception creating session .. :", e);
4323 if (session != null) {
4365 if (session != null) {
4471 if (session != null) {
4522 if (session != null) {
4608 * Returns session upgrade.
4610 * @return session upgrade.
4617 * Sets session upgrade.
4619 * @param sessionUpgrade <code>true</code> if session upgrade.
4660 DEBUG.error("AuthLevel from session property bad format");
4754 session.setIsSessionUpgrade(true);
4757 /* upgrade session properties - old session and new session proeprties
4766 session.putProperty(property, value);
4772 /* update session with the property and value */
4805 /* compare old session property and new session property */
4830 // Upgrade all Properties from the existing (old) session to new session
4835 LazyConfig.SESSION_PROPERTY_UPGRADER.populateProperties(oldSession, session, forceAuth);
4838 // Upgrade all Properties from the existing (old) session to new session
4843 LazyConfig.SESSION_PROPERTY_UPGRADER.populatePropertiesFromStateless(oldSession, session);
4851 sessionUpgradeHandler.handleSessionUpgrade(oldSession, session);
4910 + "Setting post process class in session "
4913 session.setObject(ISAuthConstants.POSTPROCESS_INSTANCE_SET,
5070 session.putProperty(ISAuthConstants.POST_AUTH_PROCESS_INSTANCE,
5460 * This module name will be populated in the session property
5612 * Returns <code>true</code> if session state is invalid.
5614 * @return <code>true</code> if session state is invalid.
5617 return (session == null || session.getState() == INVALID ||
5618 session.getState() == DESTROYED);
6047 if (session == null) {
6049 "LoginState.isValidAuthForInternalUser():session is null");
6105 * Restores the old session (if one exists). Used in the case of a failed session upgrade or successful force-auth
6106 * to restore the original session object. If no old session exists then this method does nothing.
6110 DEBUG.message("Restoring old session");
6204 * Whether to keep authentication module instances in the session so that they can be called on logout. This is