com.atlassian.seraph.filter
Class SecurityFilter

java.lang.Object
  extended by com.atlassian.seraph.filter.SecurityFilter
All Implemented Interfaces:
javax.servlet.Filter

public class SecurityFilter
extends Object
implements javax.servlet.Filter

The SecurityFilter determines which roles are required for a given request by querying all of the Services.

See Also:
SecurityService

Field Summary
static String ORIGINAL_URL
           
 
Constructor Summary
SecurityFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
protected  AuthenticationContext getAuthenticationContext()
           
protected  SecurityConfig getSecurityConfig()
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIGINAL_URL

public static final String ORIGINAL_URL
See Also:
Constant Field Values
Constructor Detail

SecurityFilter

public SecurityFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
Specified by:
init in interface javax.servlet.Filter

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

getSecurityConfig

protected SecurityConfig getSecurityConfig()

getAuthenticationContext

protected AuthenticationContext getAuthenticationContext()


Copyright © 2013 Atlassian. All Rights Reserved.