public class RealmsAdminResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AdminAuth |
auth |
protected ClientConnection |
clientConnection |
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 |
|---|---|
RealmAdminResource |
getRealmAdmin(javax.ws.rs.core.HttpHeaders headers,
String name)
Base path for the admin REST API for one particular realm.
|
Stream<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 RealmRepresentation |
toRealmRep(RealmModel realm) |
protected static final org.jboss.logging.Logger logger
protected AdminAuth auth
protected TokenManager tokenManager
@Context protected KeycloakSession session
@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 Stream<RealmRepresentation> getRealms()
protected RealmRepresentation toRealmRep(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 © 2021 JBoss by Red Hat. All rights reserved.