Class ContainerBasedAuthenticationFilter
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static PatternAPI_ENGINE_PATTERNstatic PatternAPI_PLUGIN_PATTERNstatic PatternAPI_STATIC_PLUGIN_PATTERNstatic PatternAPP_PATTERNprotected org.camunda.bpm.engine.rest.security.auth.AuthenticationProviderauthenticationProviderprotected AuthenticationServiceuserAuthentications
-
Constructor Summary
Constructors Constructor Description ContainerBasedAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationcreateAuthentication(org.camunda.bpm.engine.ProcessEngine processEngine, String username, List<String> groups, List<String> tenants)voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)protected booleanexistisAuthentication(Authentications authentications, String engineName, String username)protected StringextractEngineName(javax.servlet.http.HttpServletRequest request)protected org.camunda.bpm.engine.ProcessEnginegetAddressedEngine(String engineName)protected StringgetRequestUri(javax.servlet.http.HttpServletRequest request)voidinit(javax.servlet.FilterConfig filterConfig)protected booleanisAuthenticated(Authentication authentication, String engineName, String username)
-
-
-
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
-
-
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 IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.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)
-
-