Package org.keycloak.adapters.undertow
Class AbstractUndertowRequestAuthenticator
- java.lang.Object
-
- org.keycloak.adapters.RequestAuthenticator
-
- org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
-
- Direct Known Subclasses:
ServletRequestAuthenticator,UndertowRequestAuthenticator
public abstract class AbstractUndertowRequestAuthenticator extends RequestAuthenticator
- 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 io.undertow.server.HttpServerExchangeexchangeprotected io.undertow.security.api.SecurityContextsecurityContext-
Fields inherited from class org.keycloak.adapters.RequestAuthenticator
challenge, deployment, facade, log, sslRedirectPort, tokenStore
-
-
Constructor Summary
Constructors Constructor Description AbstractUndertowRequestAuthenticator(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 Abstract Methods Concrete Methods Modifier and Type Method Description protected StringchangeHttpSessionId(boolean create)protected voidcompleteBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method)protected voidcompleteOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)protected abstract KeycloakUndertowAccountcreateAccount(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)Subclasses need to be able to create their own version of the KeycloakUndertowAccountprotected OAuthRequestAuthenticatorcreateOAuthAuthenticator()protected voidpropagateKeycloakContext(KeycloakUndertowAccount account)-
Methods inherited from class org.keycloak.adapters.RequestAuthenticator
authenticate, completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL
-
-
-
-
Constructor Detail
-
AbstractUndertowRequestAuthenticator
public AbstractUndertowRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange, AdapterTokenStore tokenStore)
-
-
Method Detail
-
propagateKeycloakContext
protected void propagateKeycloakContext(KeycloakUndertowAccount account)
-
createOAuthAuthenticator
protected OAuthRequestAuthenticator createOAuthAuthenticator()
- Specified by:
createOAuthAuthenticatorin classRequestAuthenticator
-
completeOAuthAuthentication
protected void completeOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
- Specified by:
completeOAuthAuthenticationin classRequestAuthenticator
-
completeBearerAuthentication
protected void completeBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method)
- Specified by:
completeBearerAuthenticationin classRequestAuthenticator
-
changeHttpSessionId
protected String changeHttpSessionId(boolean create)
- Specified by:
changeHttpSessionIdin classRequestAuthenticator
-
createAccount
protected abstract KeycloakUndertowAccount createAccount(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
Subclasses need to be able to create their own version of the KeycloakUndertowAccount- Returns:
- The account
-
-