Class AbstractAuthenticatedActionsValve
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.valves.ValveBase
org.nuxeo.shaded.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve
- All Implemented Interfaces:
MBeanRegistration
,org.apache.catalina.Contained
,org.apache.catalina.JmxEnabled
,org.apache.catalina.Lifecycle
,org.apache.catalina.Valve
- Direct Known Subclasses:
AuthenticatedActionsValve
public abstract class AbstractAuthenticatedActionsValve
extends org.apache.catalina.valves.ValveBase
Abstract base for pre-installed actions that must be authenticated
Actions include:
CORS Origin Check and Response headers k_query_bearer_token: Get bearer token from server for Javascripts CORS requests
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- Implementation Note:
- Copied from Keycloak Tomcat Adapter since it won't be upgraded to Jakarta as their support is dropped
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle
org.apache.catalina.Lifecycle.SingleUse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.keycloak.adapters.AdapterDeploymentContext
Fields inherited from class org.apache.catalina.valves.ValveBase
asyncSupported, container, containerLog, next, sm
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAuthenticatedActionsValve
(org.keycloak.adapters.AdapterDeploymentContext deploymentContext, org.apache.catalina.Valve next, org.apache.catalina.Container container) -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) Methods inherited from class org.apache.catalina.valves.ValveBase
backgroundProcess, getContainer, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setContainer, setNext, startInternal, stopInternal, toString
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregister
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop
-
Field Details
-
deploymentContext
protected org.keycloak.adapters.AdapterDeploymentContext deploymentContext
-
-
Constructor Details
-
AbstractAuthenticatedActionsValve
public AbstractAuthenticatedActionsValve(org.keycloak.adapters.AdapterDeploymentContext deploymentContext, org.apache.catalina.Valve next, org.apache.catalina.Container container)
-
-
Method Details
-
invoke
public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-