Package org.keycloak.adapters.undertow
Class KeycloakServletExtension
- java.lang.Object
-
- org.keycloak.adapters.undertow.KeycloakServletExtension
-
- All Implemented Interfaces:
io.undertow.servlet.ServletExtension
public class KeycloakServletExtension extends Object implements io.undertow.servlet.ServletExtension
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description KeycloakServletExtension()KeycloakServletExtension(AdapterDeploymentContext deploymentContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServletKeycloakAuthMechcreateAuthenticationMechanism(io.undertow.servlet.api.DeploymentInfo deploymentInfo, AdapterDeploymentContext deploymentContext, UndertowUserSessionManagement userSessionManagement, NodesRegistrationManagement nodesRegistrationManagement)protected StringgetErrorPage(io.undertow.servlet.api.DeploymentInfo deploymentInfo)voidhandleDeployment(io.undertow.servlet.api.DeploymentInfo deploymentInfo, javax.servlet.ServletContext servletContext)booleanisAuthenticationMechanismPresent(io.undertow.servlet.api.DeploymentInfo deploymentInfo, String mechanismName)
-
-
-
Constructor Detail
-
KeycloakServletExtension
public KeycloakServletExtension()
-
KeycloakServletExtension
public KeycloakServletExtension(AdapterDeploymentContext deploymentContext)
-
-
Method Detail
-
isAuthenticationMechanismPresent
public boolean isAuthenticationMechanismPresent(io.undertow.servlet.api.DeploymentInfo deploymentInfo, String mechanismName)
-
handleDeployment
public void handleDeployment(io.undertow.servlet.api.DeploymentInfo deploymentInfo, javax.servlet.ServletContext servletContext)- Specified by:
handleDeploymentin interfaceio.undertow.servlet.ServletExtension
-
createAuthenticationMechanism
protected ServletKeycloakAuthMech createAuthenticationMechanism(io.undertow.servlet.api.DeploymentInfo deploymentInfo, AdapterDeploymentContext deploymentContext, UndertowUserSessionManagement userSessionManagement, NodesRegistrationManagement nodesRegistrationManagement)
-
getErrorPage
protected String getErrorPage(io.undertow.servlet.api.DeploymentInfo deploymentInfo)
-
-