public class SessionInfoFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INVALID_SESSION_STATE |
static String |
SESSION_TIMED_OUT |
Constructor and Description |
---|
SessionInfoFactory() |
Modifier and Type | Method and Description |
---|---|
SessionInfo |
getSessionInfo(InternalSession internalSession,
SessionID sessionID)
Generates a SessionInfo which is a summary state of the Session used to
refresh remote instances of a Session.
|
SessionInfo |
makeSessionInfo(InternalSession internalSession,
SessionID sid)
Generates a SessionInfo object from the given InternalSession.
|
void |
validateSession(InternalSession internalSession,
SessionID sid)
Validates the state of an Internal Session against a Session ID.
|
public static final String INVALID_SESSION_STATE
public static final String SESSION_TIMED_OUT
public SessionInfo getSessionInfo(InternalSession internalSession, SessionID sessionID) throws SessionException
internalSession
- Non null InternalSession to summarise.sessionID
- SessionID of the caller making the request.SessionException
- If there was a problem accessing the underlying Session.public void validateSession(InternalSession internalSession, SessionID sid) throws SessionException
internalSession
- InternalSession to check.sid
- SessionID to check with the InternalSession.SessionException
- If the InternalSession has timed out.IllegalArgumentException
- If the SessionID of the InternalSession
and provided SessionID do not match.public SessionInfo makeSessionInfo(InternalSession internalSession, SessionID sid) throws SessionException
internalSession
- Non null InternalSession to use.sid
- Session ID for the user performing the action.SessionException
- If there was an error storing the TokenRestriction on the SessionInfo.IllegalAccessException
- If this method has not been called in-conjunction with
SessionInfoFactory#validateSessionCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.