|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.valves.ValveBase
org.apache.catalina.authenticator.SingleSignOn
com.sun.enterprise.security.web.GlassFishSingleSignOn
public class GlassFishSingleSignOn
A Valve that supports a "single sign on" user experience, where the security identity of a user who successfully authenticates to one web application is propogated to other web applications in the same security domain.
| Field Summary |
|---|
| Fields inherited from class org.apache.catalina.authenticator.SingleSignOn |
|---|
cache, info, sm |
| Fields inherited from class org.apache.catalina.valves.ValveBase |
|---|
container, controller, debug, domain, lifecycle, mserver, next, oname, started |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT |
| Fields inherited from interface org.glassfish.web.valve.GlassFishValve |
|---|
END_PIPELINE, INVOKE_NEXT |
| Constructor Summary | |
|---|---|
GlassFishSingleSignOn()
|
|
| Method Summary | |
|---|---|
protected void |
deregister(java.lang.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(java.lang.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. |
| Methods inherited from class org.apache.catalina.authenticator.SingleSignOn |
|---|
associate, deregister, getDebug, getInfo, log, log, lookup, register, setDebug, toString |
| Methods inherited from class org.apache.catalina.valves.ValveBase |
|---|
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getContainer, getContainerName, getController, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, postDeregister, postInvoke, postRegister, preDeregister, preRegister, removeLifecycleListener, setContainer, setController, setNext, setObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GlassFishSingleSignOn()
| Method Detail |
|---|
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 Lifecyclestart in class SingleSignOnLifecycleException - if this component detects a fatal error
that prevents this component from being used
public void stop()
throws LifecycleException
stop in interface Lifecyclestop in class SingleSignOnLifecycleException - if this component detects a fatal error
that needs to be reportedpublic void sessionEvent(SessionEvent event)
sessionEvent in interface SessionListenersessionEvent in class SingleSignOnevent - SessionEvent that has occurred
public int invoke(Request request,
Response response)
throws java.io.IOException,
javax.servlet.ServletException
invoke in interface GlassFishValveinvoke in class SingleSignOnjava.io.IOException
javax.servlet.ServletExceptionprotected void deregister(java.lang.String ssoId)
ssoId - Single sign on identifier to deregisterpublic void run()
run in interface java.lang.Runnable
protected void removeSession(java.lang.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 SingleSignOnMBeanpublic int getHitCount()
getHitCount in interface SingleSignOnMBeanpublic int getMissCount()
getMissCount in interface SingleSignOnMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||