/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: LoginState.java,v 1.56 2009/11/25 12:04:19 manish_rustagi Exp $
*
*/
/**
* Portions Copyrighted 2015-2016 ForgeRock AS.
*/
/**
* The default session activator: creates a new session, sets that as the current session,
* copies in properties from the session it's upgrading from (if appropriate) and then
* from the auth session into this new session, deletes the auth session and returns.
*/
protected DefaultSessionActivator() {
}
throws AuthException {
//create our new session - the loginState needs this session as it's the one we'll be passing back to the user
return updateSessions(session, loginState, session, authSession, sessionService, subject, loginContext);
}
/**
* newSession and sessionToActivate may be the same session -- e.g. in the default case for normal or stateless
* tokens. In other circumstances they will differ (i.e. ForceAuth).
*/
throws AuthException {
//session upgrade and anonymous conditions are handled in here
//copy in our auth session properties (if any)
//destroying the authentication session
if (DEBUG.messageEnabled()) {
}
//ensure that we've updated the subject (if appropriate, e.g. from anonymous -> known)
//set the login context for this session
}
try {
} catch (SessionException e) {
throw new AuthException(e);
}
}
protected void putAllPropertiesFromAuthSession(InternalSession authSession, InternalSession sessionToUpdate) {
while (authSessionProperties.hasMoreElements()) {
}
}
}
protected boolean activateSession(InternalSession session, LoginState loginState) throws SessionException {
}
}
if (DEBUG.messageEnabled()) {
}
if (DEBUG.messageEnabled()) {
}
return subject;
}
}