Class PaxWebIntegrationService
- java.lang.Object
-
- org.keycloak.adapters.osgi.undertow.PaxWebIntegrationService
-
public class PaxWebIntegrationService extends Object
Integration with pax-web, which allows to inject custom security constraint for securing resources by Keycloak.It assumes that pax-web
WebContaineris used as implementation of OSGIHttpService, which is true in karaf/fuse environment- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description PaxWebIntegrationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddConstraintMapping(org.ops4j.pax.web.service.WebContainer service, PaxWebSecurityConstraintMapping cm)protected org.ops4j.pax.web.service.WebContaineraddingWebContainerCallback(org.osgi.framework.ServiceReference webContainerServiceReference)org.osgi.framework.BundleContextgetBundleContext()List<PaxWebSecurityConstraintMapping>getConstraintMappings()protected org.osgi.service.http.HttpContextgetHttpContext()protected org.osgi.util.tracker.ServiceTrackergetWebContainerTracker()protected voidremovingWebContainerCallback(org.osgi.framework.ServiceReference serviceReference)voidsetBundleContext(org.osgi.framework.BundleContext bundleContext)voidsetConstraintMappings(List<PaxWebSecurityConstraintMapping> constraintMappings)voidsetHttpContext(org.osgi.service.http.HttpContext httpContext)voidstart()voidstop()
-
-
-
Method Detail
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
getConstraintMappings
public List<PaxWebSecurityConstraintMapping> getConstraintMappings()
-
setConstraintMappings
public void setConstraintMappings(List<PaxWebSecurityConstraintMapping> constraintMappings)
-
getWebContainerTracker
protected org.osgi.util.tracker.ServiceTracker getWebContainerTracker()
-
getHttpContext
protected org.osgi.service.http.HttpContext getHttpContext()
-
setHttpContext
public void setHttpContext(org.osgi.service.http.HttpContext httpContext)
-
start
public void start()
-
stop
public void stop()
-
addingWebContainerCallback
protected org.ops4j.pax.web.service.WebContainer addingWebContainerCallback(org.osgi.framework.ServiceReference webContainerServiceReference)
-
addConstraintMapping
protected void addConstraintMapping(org.ops4j.pax.web.service.WebContainer service, PaxWebSecurityConstraintMapping cm)
-
removingWebContainerCallback
protected void removingWebContainerCallback(org.osgi.framework.ServiceReference serviceReference)
-
-