org.camunda.bpm.webapp.impl.security.auth
Class ContainerBasedAuthenticationFilter

java.lang.Object
  extended by org.camunda.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ContainerBasedAuthenticationFilter
extends Object
implements javax.servlet.Filter


Field Summary
static Pattern API_ENGINE_PATTERN
           
static Pattern API_PLUGIN_PATTERN
           
static Pattern API_STATIC_PLUGIN_PATTERN
           
static Pattern APP_PATTERN
           
protected  org.camunda.bpm.engine.rest.security.auth.AuthenticationProvider authenticationProvider
           
protected  AuthenticationService userAuthentications
           
 
Constructor Summary
ContainerBasedAuthenticationFilter()
           
 
Method Summary
protected  Authentication createAuthentication(org.camunda.bpm.engine.ProcessEngine processEngine, String username, List<String> groups, List<String> tenants)
           
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
protected  boolean existisAuthentication(Authentications authentications, String engineName, String username)
           
protected  String extractEngineName(javax.servlet.http.HttpServletRequest request)
           
protected  org.camunda.bpm.engine.ProcessEngine getAddressedEngine(String engineName)
           
protected  String getRequestUri(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  boolean isAuthenticated(Authentication authentication, String engineName, String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_PATTERN

public static Pattern APP_PATTERN

API_ENGINE_PATTERN

public static Pattern API_ENGINE_PATTERN

API_STATIC_PLUGIN_PATTERN

public static Pattern API_STATIC_PLUGIN_PATTERN

API_PLUGIN_PATTERN

public static Pattern API_PLUGIN_PATTERN

authenticationProvider

protected org.camunda.bpm.engine.rest.security.auth.AuthenticationProvider authenticationProvider

userAuthentications

protected AuthenticationService userAuthentications
Constructor Detail

ContainerBasedAuthenticationFilter

public ContainerBasedAuthenticationFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

destroy

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

doFilter

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

getRequestUri

protected String getRequestUri(javax.servlet.http.HttpServletRequest request)

extractEngineName

protected String extractEngineName(javax.servlet.http.HttpServletRequest request)

getAddressedEngine

protected org.camunda.bpm.engine.ProcessEngine getAddressedEngine(String engineName)

existisAuthentication

protected boolean existisAuthentication(Authentications authentications,
                                        String engineName,
                                        String username)

isAuthenticated

protected boolean isAuthenticated(Authentication authentication,
                                  String engineName,
                                  String username)

createAuthentication

protected Authentication createAuthentication(org.camunda.bpm.engine.ProcessEngine processEngine,
                                              String username,
                                              List<String> groups,
                                              List<String> tenants)


Copyright © 2018 camunda services GmbH. All rights reserved.