Class ContainerBasedAuthenticationFilter
java.lang.Object
org.eximeebpms.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Patternstatic Patternstatic Patternstatic Patternprotected AuthenticationProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UserAuthenticationcreateAuthentication(ProcessEngine processEngine, String username, List<String> groups, List<String> tenants) voiddestroy()voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) protected booleanexistisAuthentication(Authentications authentications, String engineName, String username) protected StringextractEngineName(jakarta.servlet.http.HttpServletRequest request) protected ProcessEnginegetAddressedEngine(String engineName) protected StringgetRequestUri(jakarta.servlet.http.HttpServletRequest request) voidinit(jakarta.servlet.FilterConfig filterConfig) protected booleanisAuthenticated(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:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin 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:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.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)
-