Package com.atlassian.seraph.filter
Class AccessTokenLoginFilter
java.lang.Object
com.atlassian.seraph.filter.BaseLoginFilter
com.atlassian.seraph.filter.AccessTokenLoginFilter
- All Implemented Interfaces:
javax.servlet.Filter
public class AccessTokenLoginFilter
extends com.atlassian.seraph.filter.BaseLoginFilter
-
Field Summary
Fields inherited from class com.atlassian.seraph.filter.BaseLoginFilter
AUTHENTICATION_ERROR_TYPE, LOGIN_ERROR, LOGIN_FAILED, LOGIN_NOATTEMPT, LOGIN_SUCCESS, OS_AUTHSTATUS_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) void
init
(javax.servlet.FilterConfig filterConfig) protected void
invalidateSession
(javax.servlet.http.HttpServletRequest httpServletRequest) login
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) protected void
putPrincipalInSessionContext
(javax.servlet.http.HttpServletRequest httpServletRequest, BambooUser principal) Methods inherited from class com.atlassian.seraph.filter.BaseLoginFilter
destroy, getAuthenticationContext, getAuthenticator, getElevatedSecurityGuard, getSecurityConfig, isAbsoluteUrl, redirectToOriginalDestination
-
Field Details
-
AUTHORIZED_BY_TOKEN
- See Also:
-
ACCESS_TOKEN
- See Also:
-
-
Constructor Details
-
AccessTokenLoginFilter
public AccessTokenLoginFilter()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig filterConfig) - Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classcom.atlassian.seraph.filter.BaseLoginFilter
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Overrides:
doFilter
in classcom.atlassian.seraph.filter.BaseLoginFilter
- Throws:
IOException
javax.servlet.ServletException
-
login
public String login(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
login
in classcom.atlassian.seraph.filter.BaseLoginFilter
-
putPrincipalInSessionContext
protected void putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest, BambooUser principal) -
invalidateSession
protected void invalidateSession(javax.servlet.http.HttpServletRequest httpServletRequest)
-