public class ShireServlet
extends javax.servlet.http.HttpServlet
The shire, which is only used for new-mode SSO apps, is where Websignon sends its security assertion to say that a particular user has just successfully signed in.
After the user has signed in via Websignon, an auto-submitting form containing the security assertion is posted here, to the shire. The shire will do a few things:
After this is done, SSOClientFilter will see the SSC and set up the current user
in the request.
ShireServlet should be defined in web.xml, and must be served over HTTPS. When your application is registered with SSO, the URL to your shire will be one of the pieces of information it knows about.
| Constructor and Description |
|---|
ShireServlet() |
| Modifier and Type | Method and Description |
|---|---|
uk.ac.warwick.sso.client.ShireCommand |
createShireCommand(java.lang.String remoteAddress) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
uk.ac.warwick.sso.client.cache.UserCache |
getCache() |
uk.ac.warwick.sso.client.SSOConfiguration |
getConfig() |
java.lang.String |
getConfigSuffix() |
uk.ac.warwick.util.cache.Cache<java.lang.String,uk.ac.warwick.userlookup.User> |
getUserIdCache() |
void |
init(javax.servlet.ServletConfig ctx) |
void |
setCache(uk.ac.warwick.sso.client.cache.UserCache cache) |
void |
setConfig(uk.ac.warwick.sso.client.SSOConfiguration config) |
void |
setConfigSuffix(java.lang.String configSuffix) |
void |
setUserIdCache(uk.ac.warwick.util.cache.Cache<java.lang.String,uk.ac.warwick.userlookup.User> userIdCache) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected final void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected final void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic uk.ac.warwick.sso.client.ShireCommand createShireCommand(java.lang.String remoteAddress)
public final void init(javax.servlet.ServletConfig ctx)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic final uk.ac.warwick.sso.client.cache.UserCache getCache()
public final void setCache(uk.ac.warwick.sso.client.cache.UserCache cache)
public final uk.ac.warwick.sso.client.SSOConfiguration getConfig()
public final void setConfig(uk.ac.warwick.sso.client.SSOConfiguration config)
public final java.lang.String getConfigSuffix()
public final void setConfigSuffix(java.lang.String configSuffix)
public final uk.ac.warwick.util.cache.Cache<java.lang.String,uk.ac.warwick.userlookup.User> getUserIdCache()
public final void setUserIdCache(uk.ac.warwick.util.cache.Cache<java.lang.String,uk.ac.warwick.userlookup.User> userIdCache)