com.atlassian.seraph.filter
Class BambooLoginFilter

java.lang.Object
  extended by com.atlassian.seraph.filter.BaseLoginFilter
      extended by com.atlassian.seraph.filter.PasswordBasedLoginFilter
          extended by com.atlassian.seraph.filter.LoginFilter
              extended by com.atlassian.seraph.filter.BambooLoginFilter
All Implemented Interfaces:
javax.servlet.Filter

public class BambooLoginFilter
extends com.atlassian.seraph.filter.LoginFilter

The purpose of this filter is to override default way the BaseLoginFilter works. BaseLoginFilter ignores the already set BaseLoginFilter.OS_AUTHSTATUS_KEY, so any earlier trusted apps login success is cleared. For trusted apps calls no other authentication method is used - so calls are not authenticated at all.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.seraph.filter.PasswordBasedLoginFilter
com.atlassian.seraph.filter.PasswordBasedLoginFilter.UserPasswordPair
 
Field Summary
protected static org.slf4j.Logger logger
           
 
Fields inherited from class com.atlassian.seraph.filter.BaseLoginFilter
ALREADY_FILTERED, AUTHENTICATION_ERROR_TYPE, LOGIN_ERROR, LOGIN_FAILED, LOGIN_NOATTEMPT, LOGIN_SUCCESS, OS_AUTHSTATUS_KEY
 
Constructor Summary
BambooLoginFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 
Methods inherited from class com.atlassian.seraph.filter.LoginFilter
extractUserPasswordPair
 
Methods inherited from class com.atlassian.seraph.filter.PasswordBasedLoginFilter
login
 
Methods inherited from class com.atlassian.seraph.filter.BaseLoginFilter
destroy, getAuthenticationContext, getAuthenticator, getElevatedSecurityGuard, getFilterConfig, getSecurityConfig, init, isAbsoluteUrl, redirectToOriginalDestination, setFilterConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

BambooLoginFilter

public BambooLoginFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Overrides:
doFilter in class com.atlassian.seraph.filter.BaseLoginFilter
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2012 Atlassian. All Rights Reserved.