public class KeycloakOIDCFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_FILE_PARAM |
static String |
CONFIG_PATH_PARAM |
static String |
CONFIG_RESOLVER_PARAM |
protected AdapterDeploymentContext |
deploymentContext |
protected SessionIdMapper |
idMapper |
protected NodesRegistrationManagement |
nodesRegistrationManagement |
static String |
SKIP_PATTERN_PARAM |
protected Pattern |
skipPattern |
Constructor and Description |
---|
KeycloakOIDCFilter() |
KeycloakOIDCFilter(KeycloakConfigResolver definedconfigResolver)
Constructor that can be used to define a
KeycloakConfigResolver that will be used at initialization to
provide the KeycloakDeployment . |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public static final String SKIP_PATTERN_PARAM
public static final String CONFIG_RESOLVER_PARAM
public static final String CONFIG_FILE_PARAM
public static final String CONFIG_PATH_PARAM
protected AdapterDeploymentContext deploymentContext
protected SessionIdMapper idMapper
protected NodesRegistrationManagement nodesRegistrationManagement
protected Pattern skipPattern
public KeycloakOIDCFilter(KeycloakConfigResolver definedconfigResolver)
KeycloakConfigResolver
that will be used at initialization to
provide the KeycloakDeployment
.definedconfigResolver
- the resolverpublic KeycloakOIDCFilter()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2020 JBoss by Red Hat. All rights reserved.