org.keycloak.adapters.undertow

## Class UndertowRequestAuthenticator

- java.lang.Object
- - org.keycloak.adapters.RequestAuthenticator
  - - org.keycloak.adapters.undertow.UndertowRequestAuthenticator

- Direct Known Subclasses:
    ServletRequestAuthenticator

      public class UndertowRequestAuthenticator
      extends RequestAuthenticator

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected io.undertow.server.HttpServerExchange` | `exchange`
    `protected io.undertow.security.api.SecurityContext` | `securityContext`

    - ### Fields inherited from class org.keycloak.adapters.RequestAuthenticator

      `challenge, deployment, facade, log, sslRedirectPort`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UndertowRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `completeBearerAuthentication(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)`
    `protected void` | `completeOAuthAuthentication(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)`
    `protected OAuthRequestAuthenticator` | `createOAuthAuthenticator()`
    `protected boolean` | `isCached()`
    `protected void` | `login(KeycloakAccount account)`
    `protected void` | `propagateKeycloakContext(KeycloakUndertowAccount account)`

    - ### Methods inherited from class org.keycloak.adapters.RequestAuthenticator

      `authenticate, completeAuthentication, completeAuthentication, createBearerTokenAuthenticator, getChallenge`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### securityContext

          protected io.undertow.security.api.SecurityContext securityContext

    - #### exchange

          protected io.undertow.server.HttpServerExchange exchange

  - ### Constructor Detail

    - #### UndertowRequestAuthenticator

          public UndertowRequestAuthenticator(HttpFacade facade,
                                      KeycloakDeployment deployment,
                                      int sslRedirectPort,
                                      io.undertow.security.api.SecurityContext securityContext,
                                      io.undertow.server.HttpServerExchange exchange)

  - ### Method Detail

    - #### propagateKeycloakContext

          protected void propagateKeycloakContext(KeycloakUndertowAccount account)

    - #### createOAuthAuthenticator

          protected OAuthRequestAuthenticator createOAuthAuthenticator()

      Specified by:
        `createOAuthAuthenticator` in class `RequestAuthenticator`

    - #### completeOAuthAuthentication

          protected void completeOAuthAuthentication(KeycloakPrincipal principal,
                                         RefreshableKeycloakSecurityContext session)

      Specified by:
        `completeOAuthAuthentication` in class `RequestAuthenticator`

    - #### login

          protected void login(KeycloakAccount account)

    - #### completeBearerAuthentication

          protected void completeBearerAuthentication(KeycloakPrincipal principal,
                                          RefreshableKeycloakSecurityContext session)

      Specified by:
        `completeBearerAuthentication` in class `RequestAuthenticator`

    - #### isCached

          protected boolean isCached()

      Specified by:
        `isCached` in class `RequestAuthenticator`

Copyright © 2014. All Rights Reserved.