Package org.keycloak.adapters.undertow
Class ServletRequestAuthenticator
- java.lang.Object
-
- org.keycloak.adapters.RequestAuthenticator
-
- org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
-
- org.keycloak.adapters.undertow.ServletRequestAuthenticator
-
public class ServletRequestAuthenticator extends AbstractUndertowRequestAuthenticator
- Version:
- $Revision: 1 $
- Author:
- Bill Burke, Stan Silvert ssilvert@redhat.com (C) 2014 Red Hat Inc.
-
-
Field Summary
-
Fields inherited from class org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
exchange, securityContext
-
Fields inherited from class org.keycloak.adapters.RequestAuthenticator
challenge, deployment, facade, log, sslRedirectPort, tokenStore
-
-
Constructor Summary
Constructors Constructor Description ServletRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange, AdapterTokenStore tokenStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringchangeHttpSessionId(boolean create)protected KeycloakUndertowAccountcreateAccount(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)Subclasses need to be able to create their own version of the KeycloakUndertowAccountprotected OAuthRequestAuthenticatorcreateOAuthAuthenticator()protected StringgetHttpSessionId(boolean create)protected javax.servlet.http.HttpSessiongetSession(boolean create)protected voidpropagateKeycloakContext(KeycloakUndertowAccount account)-
Methods inherited from class org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
completeBearerAuthentication, completeOAuthAuthentication
-
Methods inherited from class org.keycloak.adapters.RequestAuthenticator
authenticate, completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL
-
-
-
-
Constructor Detail
-
ServletRequestAuthenticator
public ServletRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange, AdapterTokenStore tokenStore)
-
-
Method Detail
-
createOAuthAuthenticator
protected OAuthRequestAuthenticator createOAuthAuthenticator()
- Overrides:
createOAuthAuthenticatorin classAbstractUndertowRequestAuthenticator
-
propagateKeycloakContext
protected void propagateKeycloakContext(KeycloakUndertowAccount account)
- Overrides:
propagateKeycloakContextin classAbstractUndertowRequestAuthenticator
-
createAccount
protected KeycloakUndertowAccount createAccount(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
Description copied from class:AbstractUndertowRequestAuthenticatorSubclasses need to be able to create their own version of the KeycloakUndertowAccount- Specified by:
createAccountin classAbstractUndertowRequestAuthenticator- Returns:
- The account
-
changeHttpSessionId
protected String changeHttpSessionId(boolean create)
- Overrides:
changeHttpSessionIdin classAbstractUndertowRequestAuthenticator
-
getHttpSessionId
protected String getHttpSessionId(boolean create)
-
getSession
protected javax.servlet.http.HttpSession getSession(boolean create)
-
-