Package org.keycloak.adapters.undertow
Class ServletKeycloakAuthMech
- java.lang.Object
-
- org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech
-
- org.keycloak.adapters.undertow.ServletKeycloakAuthMech
-
- All Implemented Interfaces:
io.undertow.security.api.AuthenticationMechanism
public class ServletKeycloakAuthMech extends AbstractUndertowKeycloakAuthMech
- Version:
- $Revision: 1 $
- Author:
- Bill Burke, Stan Silvert ssilvert@redhat.com (C) 2014 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected NodesRegistrationManagementnodesRegistrationManagementprotected io.undertow.servlet.api.ConfidentialPortManagerportManager-
Fields inherited from class org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech
deploymentContext, errorPage, KEYCLOAK_CHALLENGE_ATTACHMENT_KEY, sessionManagement
-
-
Constructor Summary
Constructors Constructor Description ServletKeycloakAuthMech(AdapterDeploymentContext deploymentContext, UndertowUserSessionManagement userSessionManagement, NodesRegistrationManagement nodesRegistrationManagement, io.undertow.servlet.api.ConfidentialPortManager portManager, String errorPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcomeauthenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)UndertowHttpFacadecreateFacade(io.undertow.server.HttpServerExchange exchange)protected RequestAuthenticatorcreateRequestAuthenticator(KeycloakDeployment deployment, io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext, UndertowHttpFacade facade)protected intgetConfidentilPort(io.undertow.server.HttpServerExchange exchange)protected AdapterTokenStoregetTokenStore(io.undertow.server.HttpServerExchange exchange, HttpFacade facade, KeycloakDeployment deployment, io.undertow.security.api.SecurityContext securityContext)protected IntegerservePage(io.undertow.server.HttpServerExchange exchange, String location)-
Methods inherited from class org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech
keycloakAuthenticate, registerNotifications, sendChallenge
-
-
-
-
Field Detail
-
nodesRegistrationManagement
protected NodesRegistrationManagement nodesRegistrationManagement
-
portManager
protected io.undertow.servlet.api.ConfidentialPortManager portManager
-
-
Constructor Detail
-
ServletKeycloakAuthMech
public ServletKeycloakAuthMech(AdapterDeploymentContext deploymentContext, UndertowUserSessionManagement userSessionManagement, NodesRegistrationManagement nodesRegistrationManagement, io.undertow.servlet.api.ConfidentialPortManager portManager, String errorPage)
-
-
Method Detail
-
servePage
protected Integer servePage(io.undertow.server.HttpServerExchange exchange, String location)
- Overrides:
servePagein classAbstractUndertowKeycloakAuthMech
-
authenticate
public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
-
createRequestAuthenticator
protected RequestAuthenticator createRequestAuthenticator(KeycloakDeployment deployment, io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext, UndertowHttpFacade facade)
-
getConfidentilPort
protected int getConfidentilPort(io.undertow.server.HttpServerExchange exchange)
-
getTokenStore
protected AdapterTokenStore getTokenStore(io.undertow.server.HttpServerExchange exchange, HttpFacade facade, KeycloakDeployment deployment, io.undertow.security.api.SecurityContext securityContext)
- Overrides:
getTokenStorein classAbstractUndertowKeycloakAuthMech
-
createFacade
public UndertowHttpFacade createFacade(io.undertow.server.HttpServerExchange exchange)
- Overrides:
createFacadein classAbstractUndertowKeycloakAuthMech
-
-