public class GlassFishSingleSignOn extends SingleSignOn implements Runnable, SingleSignOnMBean
cache, info
container, controller, debug, domain, lifecycle, log, next, oname, rb, started
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
END_PIPELINE, INVOKE_NEXT
Constructor and Description |
---|
GlassFishSingleSignOn() |
Modifier and Type | Method and Description |
---|---|
protected void |
deregister(String ssoId)
Deregister the specified single sign on identifier, and invalidate any associated sessions.
|
int |
getActiveSessionCount()
Gets the number of sessions participating in SSO
|
int |
getHitCount()
Gets the number of SSO cache hits
|
int |
getMaxInactive()
Return max idle time for SSO entries (seconds)
|
int |
getMissCount()
Gets the number of SSO cache misses
|
int |
getReapInterval()
Return expire thread interval (seconds)
|
int |
invoke(Request request,
Response response)
IASRI 4665318 public void invoke(Request request, Response response, ValveContext context) throws IOException,
ServletException {
|
protected void |
removeSession(String ssoId,
Session session)
Remove a single Session from a SingleSignOn.
|
void |
run()
The background thread that checks for SSO timeouts and shutdown.
|
void |
sessionEvent(SessionEvent event)
Acknowledge the occurrence of the specified event.
|
void |
setMaxInactive(int t)
Set max idle time for SSO entries (seconds)
|
void |
setReapInterval(int t)
Set expire thread interval (seconds)
|
void |
start()
Prepare for the beginning of active use of the public methods of this component.
|
void |
stop()
Gracefully terminate the active use of the public methods of this component.
|
associate, deregister, getDebug, getInfo, isVersioningSupported, log, log, lookup, lookup, register, setDebug, toString
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getContainer, getController, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, postInvoke, removeLifecycleListener, setContainer, setController, setNext, setObjectName
public int getReapInterval()
public void setReapInterval(int t)
public int getMaxInactive()
public void setMaxInactive(int t)
public void start() throws LifecycleException
configure()
, and before any of the public methods of the component are utilized.start
in interface Lifecycle
start
in class SingleSignOn
LifecycleException
- if this component detects a fatal error that prevents this component from being usedpublic void stop() throws LifecycleException
stop
in interface Lifecycle
stop
in class SingleSignOn
LifecycleException
- if this component detects a fatal error that needs to be reportedpublic void sessionEvent(SessionEvent event)
sessionEvent
in interface SessionListener
sessionEvent
in class SingleSignOn
event
- SessionEvent that has occurredpublic int invoke(Request request, Response response) throws IOException, javax.servlet.ServletException
invoke
in interface GlassFishValve
invoke
in class SingleSignOn
request
- The servlet request we are processingresponse
- The servlet response we are creatingINVOKE_NEXT
or END_PIPELINE
IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet error occursprotected void deregister(String ssoId)
ssoId
- Single sign on identifier to deregisterpublic void run()
protected void removeSession(String ssoId, Session session)
ssoId
- Single sign on identifier from which to remove the session.session
- the session to be removed.public int getActiveSessionCount()
getActiveSessionCount
in interface SingleSignOnMBean
public int getHitCount()
getHitCount
in interface SingleSignOnMBean
public int getMissCount()
getMissCount
in interface SingleSignOnMBean
Copyright © 2020. All rights reserved.