Class ContainerBasedAuthenticationFilter
java.lang.Object
org.camunda.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
-
Field Summary
Modifier and TypeFieldDescriptionstatic Pattern
static Pattern
static Pattern
static Pattern
protected AuthenticationProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected UserAuthentication
createAuthentication
(ProcessEngine processEngine, String username, List<String> groups, List<String> tenants) void
destroy()
void
doFilter
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) protected boolean
existisAuthentication
(Authentications authentications, String engineName, String username) protected String
extractEngineName
(jakarta.servlet.http.HttpServletRequest request) protected ProcessEngine
getAddressedEngine
(String engineName) protected String
getRequestUri
(jakarta.servlet.http.HttpServletRequest request) void
init
(jakarta.servlet.FilterConfig filterConfig) protected boolean
isAuthenticated
(Authentication authentication, String engineName, String username)
-
Field Details
-
APP_PATTERN
-
API_ENGINE_PATTERN
-
API_STATIC_PLUGIN_PATTERN
-
API_PLUGIN_PATTERN
-
authenticationProvider
-
-
Constructor Details
-
ContainerBasedAuthenticationFilter
public ContainerBasedAuthenticationFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Filter
- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Filter
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
getRequestUri
-
extractEngineName
-
getAddressedEngine
-
existisAuthentication
protected boolean existisAuthentication(Authentications authentications, String engineName, String username) -
isAuthenticated
protected boolean isAuthenticated(Authentication authentication, String engineName, String username) -
createAuthentication
protected UserAuthentication createAuthentication(ProcessEngine processEngine, String username, List<String> groups, List<String> tenants)
-