public abstract class AuthenticationFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_FILTER |
static String |
AUTH_USERNAME_COOKIE_NAME |
static String |
BROWSER_SESSION_AUTH_COOKIE_NAME |
protected static String |
DOMAIN |
protected static String |
PASSWORD |
static String |
REDIRECT_URL |
protected static String |
REMEMBER_USERNAME |
static String |
SESSION_USER |
static String |
STATE |
protected static String |
TIMEZONE_OFFSET |
protected static String |
USERNAME |
Constructor and Description |
---|
AuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
browserSessionCookieIsValid(HfgCookie inSessionCookie) |
protected static UserImpl |
createUserObjFromBrowserSessionCookie(HfgCookie inSessionCookie) |
void |
doFilter(javax.servlet.ServletRequest inRequest,
javax.servlet.ServletResponse inResponse,
javax.servlet.FilterChain inFilterChain) |
protected HfgCookie |
generateAuthUsernameCookie(String inUsername,
String inDomain) |
protected HfgCookie |
generateBrowserSessionCookie(UserImpl inUser) |
Set<String> |
getAllowedUserDomains() |
String |
getAppName() |
static HfgCookie |
getAuthUsernameCookie(javax.servlet.http.HttpServletRequest inRequest) |
protected static LoginCredentials |
getAuthUsernameCookieValue(HfgCookie inCookie) |
static HfgCookie |
getBrowserSessionCookie(javax.servlet.http.HttpServletRequest inRequest) |
Pattern |
getBypassPattern() |
KeyPair |
getECKeyPair() |
protected static KeyPair |
getECKeyPair(File inKeyDir) |
javax.servlet.FilterConfig |
getFilterConfig() |
String |
getInitialURL() |
boolean |
getPreserveRequestedURL() |
static UserImpl |
getUser(javax.servlet.http.HttpServletRequest inRequest) |
static UserImpl |
getUser(javax.servlet.http.HttpSession inSession) |
boolean |
getUseSessionCookie() |
void |
init(javax.servlet.FilterConfig inFilterConfig) |
protected abstract void |
innerDoFilter(javax.servlet.ServletRequest inRequest,
javax.servlet.ServletResponse inResponse,
javax.servlet.FilterChain inFilterChain) |
boolean |
isAllowedUserDomain(String inValue) |
void |
logout(javax.servlet.http.HttpServletRequest inServletRequest,
javax.servlet.http.HttpServletResponse inServletResponse) |
public static final String SESSION_USER
public static final String STATE
public static final String REDIRECT_URL
public static final String AUTH_FILTER
public static final String BROWSER_SESSION_AUTH_COOKIE_NAME
public static final String AUTH_USERNAME_COOKIE_NAME
protected static final String USERNAME
protected static final String PASSWORD
protected static final String DOMAIN
protected static final String TIMEZONE_OFFSET
protected static final String REMEMBER_USERNAME
public AuthenticationFilter()
public void init(javax.servlet.FilterConfig inFilterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest inRequest, javax.servlet.ServletResponse inResponse, javax.servlet.FilterChain inFilterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void logout(javax.servlet.http.HttpServletRequest inServletRequest, javax.servlet.http.HttpServletResponse inServletResponse) throws Exception
Exception
public static HfgCookie getBrowserSessionCookie(javax.servlet.http.HttpServletRequest inRequest)
public javax.servlet.FilterConfig getFilterConfig()
public String getInitialURL()
public boolean getPreserveRequestedURL()
public String getAppName()
public boolean getUseSessionCookie()
public KeyPair getECKeyPair()
public Pattern getBypassPattern()
public Set<String> getAllowedUserDomains()
public boolean isAllowedUserDomain(String inValue)
protected abstract void innerDoFilter(javax.servlet.ServletRequest inRequest, javax.servlet.ServletResponse inResponse, javax.servlet.FilterChain inFilterChain) throws Exception
Exception
protected static KeyPair getECKeyPair(File inKeyDir)
protected boolean browserSessionCookieIsValid(HfgCookie inSessionCookie) throws Exception
Exception
protected HfgCookie generateBrowserSessionCookie(UserImpl inUser) throws Exception
Exception
protected static UserImpl createUserObjFromBrowserSessionCookie(HfgCookie inSessionCookie) throws XMLException, IOException
XMLException
IOException
protected HfgCookie generateAuthUsernameCookie(String inUsername, String inDomain) throws Exception
Exception
public static HfgCookie getAuthUsernameCookie(javax.servlet.http.HttpServletRequest inRequest)
protected static LoginCredentials getAuthUsernameCookieValue(HfgCookie inCookie)