Class ContainerBasedAuthenticationFilter
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ContainerBasedAuthenticationFilter extends java.lang.Object implements javax.servlet.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.PatternAPI_ENGINE_PATTERNstatic java.util.regex.PatternAPI_PLUGIN_PATTERNstatic java.util.regex.PatternAPI_STATIC_PLUGIN_PATTERNstatic java.util.regex.PatternAPP_PATTERNprotected AuthenticationProviderauthenticationProvider
-
Constructor Summary
Constructors Constructor Description ContainerBasedAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserAuthenticationcreateAuthentication(ProcessEngine processEngine, java.lang.String username, java.util.List<java.lang.String> groups, java.util.List<java.lang.String> tenants)voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)protected booleanexistisAuthentication(Authentications authentications, java.lang.String engineName, java.lang.String username)protected java.lang.StringextractEngineName(javax.servlet.http.HttpServletRequest request)protected ProcessEnginegetAddressedEngine(java.lang.String engineName)protected java.lang.StringgetRequestUri(javax.servlet.http.HttpServletRequest request)voidinit(javax.servlet.FilterConfig filterConfig)protected booleanisAuthenticated(Authentication authentication, java.lang.String engineName, java.lang.String username)
-
-
-
Field Detail
-
APP_PATTERN
public static java.util.regex.Pattern APP_PATTERN
-
API_ENGINE_PATTERN
public static java.util.regex.Pattern API_ENGINE_PATTERN
-
API_STATIC_PLUGIN_PATTERN
public static java.util.regex.Pattern API_STATIC_PLUGIN_PATTERN
-
API_PLUGIN_PATTERN
public static java.util.regex.Pattern API_PLUGIN_PATTERN
-
authenticationProvider
protected AuthenticationProvider authenticationProvider
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
getRequestUri
protected java.lang.String getRequestUri(javax.servlet.http.HttpServletRequest request)
-
extractEngineName
protected java.lang.String extractEngineName(javax.servlet.http.HttpServletRequest request)
-
getAddressedEngine
protected ProcessEngine getAddressedEngine(java.lang.String engineName)
-
existisAuthentication
protected boolean existisAuthentication(Authentications authentications, java.lang.String engineName, java.lang.String username)
-
isAuthenticated
protected boolean isAuthenticated(Authentication authentication, java.lang.String engineName, java.lang.String username)
-
createAuthentication
protected UserAuthentication createAuthentication(ProcessEngine processEngine, java.lang.String username, java.util.List<java.lang.String> groups, java.util.List<java.lang.String> tenants)
-
-