public final class FSSessionManager extends Object
FSSessionManager
is a final
class
that provides interfaces to manage FSSession
s.
It is a singleton class; an instance of this class can be obtained by
calling FSSessionManager.getInstance()
.
Modifier and Type | Field and Description |
---|---|
static Stats |
sessStats
For managing session statistics.
|
Modifier and Type | Method and Description |
---|---|
void |
addSession(String userID,
FSSession session)
Adds a federation session to a user.
|
FSAuthnRequest |
getAuthnRequest(String requestID)
Returns authentication request associated with
requestID . |
String |
getIDPEntityID(String requestID)
Returns IDP's entity ID associated with
requestID . |
static FSSessionManager |
getInstance(String metaAlias)
Gets the singleton instance of
FSSessionManager . |
Object |
getLocalSessionToken(String requestID)
Returns local token associated with the request ID.
|
FSAuthnRequest |
getProxySPAuthnRequest(String requestID)
Returns proxy authentication request.
|
com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType |
getProxySPDescriptor(String requestID)
Returns proxy service provider descriptor.
|
String |
getRelayState(String requestID)
Gets the
RelayState value which maps
to the request ID. |
FSSession |
getSession(List sessions,
String sessionIndex)
Returns the session in
sessions whose session index is
sessionIndex . |
FSSession |
getSession(Object token)
Returns session associated with
token . |
FSSession |
getSession(String userID,
String sessionID)
Returns session with
sessionID for userID . |
List |
getSessionList(String userID)
Returns list of sessions associated with
userID . |
void |
removeAuthnRequest(String requestID)
Removes an authentication request.
|
void |
removeLocalSessionToken(String requestID)
Removes a local token associated with
requestID . |
void |
removeProvider(String userID,
String entityID,
FSSession localSession)
Removes
entityID from userID 's
session partner list. |
void |
removeRelayState(String requestID)
Removes the mapping for this request ID from the
relayStateMap . |
void |
removeSession(String userID,
FSSession session)
Removes a federation session of an user.
|
void |
removeSessionList(String userID)
Removes session list associated with
userID . |
void |
setAuthnRequest(String requestID,
FSAuthnRequest authnRequest)
Sets authentication request.
|
void |
setIDPEntityID(String requestID,
String idpEntityId)
Sets IDP's entity ID.
|
void |
setLocalSessionToken(String requestID,
Object localSession)
Sets local token.
|
void |
setProxySPAuthnRequest(String requestID,
FSAuthnRequest authnRequest)
Sets proxy authentication request.
|
void |
setProxySPDescriptor(String requestID,
com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType spDescriptor)
Sets proxy service provider descriptor.
|
void |
setRelayState(String requestID,
String relayState)
Sets the
RelayState value with the specified
request ID in the relayStateMap . |
void |
setSessionList(String userID,
List sessionList)
Sets session list.
|
public static Stats sessStats
public String getRelayState(String requestID)
RelayState
value which maps
to the request ID.requestID
- request IDRelayState
valuepublic void setRelayState(String requestID, String relayState)
RelayState
value with the specified
request ID in the relayStateMap
.requestID
- request IDrelayState
- the RelayState
valuepublic void removeRelayState(String requestID)
relayStateMap
.requestID
- request IDpublic FSAuthnRequest getAuthnRequest(String requestID)
requestID
.requestID
- authentication request IDpublic void setAuthnRequest(String requestID, FSAuthnRequest authnRequest)
requestID
- authentication request IDauthnRequest
- authentication requestpublic void removeAuthnRequest(String requestID)
requestID
- ID of the request to be removedpublic Object getLocalSessionToken(String requestID)
requestID
- request IDpublic void setLocalSessionToken(String requestID, Object localSession)
requestID
- request IDlocalSession
- token to be setpublic void removeLocalSessionToken(String requestID)
requestID
.requestID
- request IDpublic String getIDPEntityID(String requestID)
requestID
.requestID
- request IDpublic void setIDPEntityID(String requestID, String idpEntityId)
requestID
- authentication request IDidpEntityId
- identity provider's entity ID to be setpublic void setProxySPDescriptor(String requestID, com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType spDescriptor)
requestID
- authentication request IDspDescriptor
- provider descriptor to be setpublic com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType getProxySPDescriptor(String requestID)
requestID
- request IDpublic FSAuthnRequest getProxySPAuthnRequest(String requestID)
requestID
- authentication request IDpublic void setProxySPAuthnRequest(String requestID, FSAuthnRequest authnRequest)
requestID
- request IDauthnRequest
- proxy authentication request to be set.public List getSessionList(String userID)
userID
.userID
- user IDpublic void setSessionList(String userID, List sessionList)
userID
- user IDsessionList
- list of sessions to be setpublic void removeSessionList(String userID)
userID
.userID
- user IDpublic FSSession getSession(String userID, String sessionID)
sessionID
for userID
.userID
- user IDsessionID
- session IDFSSession
objectpublic FSSession getSession(List sessions, String sessionIndex)
sessions
whose session index is
sessionIndex
.sessions
- list of FSSession
s.sessionIndex
- session indexFSSession
object whose session index is
sessionIndex
public FSSession getSession(Object token)
token
.token
- session objectFSSession
associated with the tokenpublic void removeProvider(String userID, String entityID, FSSession localSession)
entityID
from userID
's
session partner list.userID
- user IDentityID
- entity ID of the provider to be removedlocalSession
- FSSession
objectpublic void removeSession(String userID, FSSession session)
userID
- user IDsession
- federation session to be removedpublic void addSession(String userID, FSSession session)
userID
- user IDsession
- federation session to be addedpublic static FSSessionManager getInstance(String metaAlias)
FSSessionManager
.metaAlias
- hosted provider's metaAliasFSSessionManager
instance
for this providerCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.