org.keycloak.adapters

## Class AdapterDeploymentContext

- java.lang.Object
- - org.keycloak.adapters.AdapterDeploymentContext

-     public class AdapterDeploymentContext
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected static class` | `AdapterDeploymentContext.DeploymentDelegate` This delegate is used to store temporary, per-request metadata like request resolved URLs.

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected KeycloakDeployment` | `deployment`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdapterDeploymentContext()`
    `AdapterDeploymentContext(KeycloakDeployment deployment)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `close(org.apache.http.HttpResponse response)`
    `protected KeycloakUriBuilder` | `getBaseBuilder(HttpFacade facade, String base)`
    `KeycloakDeployment` | `getDeployment()`
    `KeycloakDeployment` | `resolveDeployment(HttpFacade facade)` Resolve adapter deployment based on partial adapter configuration.
    `protected void` | `resolveRealmKey(KeycloakDeployment deployment)`
    `void` | `updateDeployment(AdapterConfig config)`

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

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

- - ### Field Detail

    - #### deployment

          protected KeycloakDeployment deployment

  - ### Constructor Detail

    - #### AdapterDeploymentContext

          public AdapterDeploymentContext()

    - #### AdapterDeploymentContext

          public AdapterDeploymentContext(KeycloakDeployment deployment)

  - ### Method Detail

    - #### getDeployment

          public KeycloakDeployment getDeployment()

    - #### resolveDeployment

          public KeycloakDeployment resolveDeployment(HttpFacade facade)

      Resolve adapter deployment based on partial adapter configuration. This will resolve a relative auth server url based on the current request This will lazily resolve the public key of the realm if it is not set already.
      Returns:

    - #### resolveRealmKey

          protected void resolveRealmKey(KeycloakDeployment deployment)

    - #### getBaseBuilder

          protected KeycloakUriBuilder getBaseBuilder(HttpFacade facade,
                                          String base)

    - #### close

          protected void close(org.apache.http.HttpResponse response)

    - #### updateDeployment

          public void updateDeployment(AdapterConfig config)

Copyright © 2014. All Rights Reserved.