public class RealmsAdminResource extends Object
Modifier and Type | Field and Description |
---|---|
protected AdminAuth |
auth |
protected ClientConnection |
clientConnection |
protected KeycloakApplication |
keycloak |
protected static org.jboss.logging.Logger |
logger |
static javax.ws.rs.core.CacheControl |
noCache |
protected KeycloakSession |
session |
protected TokenManager |
tokenManager |
Constructor and Description |
---|
RealmsAdminResource(AdminAuth auth,
TokenManager tokenManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRealmRep(List<RealmRepresentation> reps,
RealmModel realm) |
RealmAdminResource |
getRealmAdmin(javax.ws.rs.core.HttpHeaders headers,
String name)
Base path for the admin REST API for one particular realm.
|
List<RealmRepresentation> |
getRealms()
Get accessible realms
Returns a list of accessible realms.
|
javax.ws.rs.core.Response |
importRealm(RealmRepresentation rep)
Import a realm
Imports a realm from a full representation of that realm.
|
protected static final org.jboss.logging.Logger logger
protected AdminAuth auth
protected TokenManager tokenManager
@Context protected KeycloakSession session
@Context protected KeycloakApplication keycloak
@Context protected ClientConnection clientConnection
public static final javax.ws.rs.core.CacheControl noCache
public RealmsAdminResource(AdminAuth auth, TokenManager tokenManager)
@GET @Produces(value="application/json") public List<RealmRepresentation> getRealms()
protected void addRealmRep(List<RealmRepresentation> reps, RealmModel realm)
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response importRealm(RealmRepresentation rep)
rep
- JSON representation of the realm@Path(value="{realm}") public RealmAdminResource getRealmAdmin(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="realm") String name)
headers
- name
- realm name (not id!)Copyright © 2020 JBoss by Red Hat. All rights reserved.