Class SamlServletExtension
- java.lang.Object
-
- org.keycloak.adapters.saml.undertow.SamlServletExtension
-
- All Implemented Interfaces:
io.undertow.servlet.ServletExtension
public class SamlServletExtension 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 SamlServletExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddEndpointConstraint(io.undertow.servlet.api.DeploymentInfo deploymentInfo)add security constraint to /saml so that the endpoint can be called and auth mechanism pinged.protected ServletSamlAuthMechcreateAuthMech(io.undertow.servlet.api.DeploymentInfo deploymentInfo, SamlDeploymentContext deploymentContext, UndertowUserSessionManagement userSessionManagement)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)
-
-
-
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
-
addEndpointConstraint
protected void addEndpointConstraint(io.undertow.servlet.api.DeploymentInfo deploymentInfo)
add security constraint to /saml so that the endpoint can be called and auth mechanism pinged.- Parameters:
deploymentInfo-
-
createAuthMech
protected ServletSamlAuthMech createAuthMech(io.undertow.servlet.api.DeploymentInfo deploymentInfo, SamlDeploymentContext deploymentContext, UndertowUserSessionManagement userSessionManagement)
-
getErrorPage
protected String getErrorPage(io.undertow.servlet.api.DeploymentInfo deploymentInfo)
-
-