public abstract class SessionPropertyUpgrader extends Object
SessionPropertyUpgrader.shouldCopy(java.lang.String)
in order to control which properties
are needed to copy into the new session.
In case you want to modify the copyable session property you are encouraged
to override SessionPropertyUpgrader.updateProperty(com.iplanet.dpro.session.service.SessionBuilder,
java.lang.String, java.lang.String)
method.Constructor and Description |
---|
SessionPropertyUpgrader() |
Modifier and Type | Method and Description |
---|---|
static SessionPropertyUpgrader |
loadPropertyUpgrader()
Attempts to load the configured session property upgrader class.
|
void |
populateProperties(Session oldSession,
SessionBuilder newSession,
boolean forceAuth)
Entry point for LoginState.
|
abstract boolean |
shouldCopy(String key)
This method decides whether a given session property should be copied to
the new session.
|
void |
updateProperty(SessionBuilder session,
String property,
String value)
This method updates a session property in the session with the given value.
|
public static SessionPropertyUpgrader loadPropertyUpgrader()
public final void populateProperties(Session oldSession, SessionBuilder newSession, boolean forceAuth)
oldSession
- The previous sessionnewSession
- The new sessions builderforceAuth
- Whether the authentication was forcedSessionException
- If there was an error whilst retrieving the old session's properties.public void updateProperty(SessionBuilder session, String property, String value)
session
- Session builder where the property should be setproperty
- Name of the property to setvalue
- Value of the given session propertypublic abstract boolean shouldCopy(String key)
key
- The name of the session property which we want to decide to copytrue
if the property with the given key should be
copied into the new sessionCopyright © 2010-2018, ForgeRock All Rights Reserved.