org.keycloak.adapters.as7

## Class CatalinaRequestAuthenticator

- java.lang.Object
- - org.keycloak.adapters.RequestAuthenticator
  - - org.keycloak.adapters.as7.CatalinaRequestAuthenticator

-     public class CatalinaRequestAuthenticator
      extends RequestAuthenticator

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected org.apache.catalina.connector.Request` | `request`
    `protected KeycloakAuthenticatorValve` | `valve`

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

      `challenge, deployment, facade, sslRedirectPort, tokenStore`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CatalinaRequestAuthenticator(KeycloakDeployment deployment, KeycloakAuthenticatorValve valve, AdapterTokenStore tokenStore, CatalinaHttpFacade facade, org.apache.catalina.connector.Request request)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `completeBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)`
    `protected void` | `completeOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> skp)`
    `protected OAuthRequestAuthenticator` | `createOAuthAuthenticator()`
    `protected String` | `getHttpSessionId(boolean create)`
    `protected void` | `restoreRequest()`

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

      `authenticate, completeAuthentication, completeAuthentication, createBearerTokenAuthenticator, getChallenge, verifySSL`

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

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

- - ### Field Detail

    - #### valve

          protected KeycloakAuthenticatorValve valve

    - #### request

          protected org.apache.catalina.connector.Request request

  - ### Constructor Detail

    - #### CatalinaRequestAuthenticator

          public CatalinaRequestAuthenticator(KeycloakDeployment deployment,
                                      KeycloakAuthenticatorValve valve,
                                      AdapterTokenStore tokenStore,
                                      CatalinaHttpFacade facade,
                                      org.apache.catalina.connector.Request request)

  - ### Method Detail

    - #### createOAuthAuthenticator

          protected OAuthRequestAuthenticator createOAuthAuthenticator()

      Specified by:
        `createOAuthAuthenticator` in class `RequestAuthenticator`

    - #### completeOAuthAuthentication

          protected void completeOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> skp)

      Specified by:
        `completeOAuthAuthentication` in class `RequestAuthenticator`

    - #### completeBearerAuthentication

          protected void completeBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)

      Specified by:
        `completeBearerAuthentication` in class `RequestAuthenticator`

    - #### restoreRequest

          protected void restoreRequest()

    - #### getHttpSessionId

          protected String getHttpSessionId(boolean create)

      Specified by:
        `getHttpSessionId` in class `RequestAuthenticator`

Copyright © 2014. All Rights Reserved.