public class ContainerBasedAuthenticationFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static Pattern |
API_ENGINE_PATTERN |
static Pattern |
API_PLUGIN_PATTERN |
static Pattern |
API_STATIC_PLUGIN_PATTERN |
static Pattern |
APP_PATTERN |
protected AuthenticationProvider |
authenticationProvider |
protected AuthenticationService |
userAuthentications |
Constructor and Description |
---|
ContainerBasedAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
protected Authentication |
createAuthentication(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 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) |
public static Pattern APP_PATTERN
public static Pattern API_ENGINE_PATTERN
public static Pattern API_STATIC_PLUGIN_PATTERN
public static Pattern API_PLUGIN_PATTERN
protected AuthenticationProvider authenticationProvider
protected AuthenticationService userAuthentications
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
protected String getRequestUri(javax.servlet.http.HttpServletRequest request)
protected String extractEngineName(javax.servlet.http.HttpServletRequest request)
protected ProcessEngine getAddressedEngine(String engineName)
protected boolean existisAuthentication(Authentications authentications, String engineName, String username)
protected boolean isAuthenticated(Authentication authentication, String engineName, String username)
protected Authentication createAuthentication(ProcessEngine processEngine, String username, List<String> groups, List<String> tenants)
Copyright © 2022. All rights reserved.