public class CASFilterRequestWrapper extends HttpServletRequestWrapper
Wraps the HttpServletRequest
object, replacing
getRemoteUser()
with a version that returns the current
CAS logged-in user.
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
CASFilterRequestWrapper(HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
String |
getRemoteUser()
Returns the currently logged in CAS user.
|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
public CASFilterRequestWrapper(HttpServletRequest request)
public String getRemoteUser()
Returns the currently logged in CAS user.
Specifically, this returns the value of the session attribute,
CASFilter.CAS_FILTER_USER
.
getRemoteUser
in interface HttpServletRequest
getRemoteUser
in class HttpServletRequestWrapper
Copyright © 2013 Nuxeo SA. All Rights Reserved.