public class PathBasedKeycloakConfigResolver extends Object implements KeycloakConfigResolver
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
log |
Constructor and Description |
---|
PathBasedKeycloakConfigResolver() |
Modifier and Type | Method and Description |
---|---|
protected KeycloakDeployment |
getCachedDeployment(String pathFragment) |
protected KeycloakDeployment |
getOrCreateDeployment(String pathFragment)
pathFragment is a key for deployments . |
protected void |
prepopulateCache()
If there's a need, we can pre populate the cache of deployments.
|
KeycloakDeployment |
resolve(HttpFacade.Request request) |
public KeycloakDeployment resolve(HttpFacade.Request request)
resolve
in interface KeycloakConfigResolver
protected KeycloakDeployment getOrCreateDeployment(String pathFragment)
pathFragment
is a key for deployments
. The key is used to construct
a path relative to keycloak.config
or karaf.etc
system properties.
For given key, <key>-keycloak.json
file is checked.pathFragment
- protected KeycloakDeployment getCachedDeployment(String pathFragment)
protected void prepopulateCache()
Copyright © 2019 JBoss by Red Hat. All rights reserved.