public class AdminConsole extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AdminConsole.WhoAmI |
Modifier and Type | Field and Description |
---|---|
protected AppAuthManager |
authManager |
protected ClientConnection |
clientConnection |
protected static org.jboss.logging.Logger |
logger |
protected javax.ws.rs.ext.Providers |
providers |
protected RealmModel |
realm |
protected org.jboss.resteasy.spi.HttpRequest |
request |
protected org.jboss.resteasy.spi.HttpResponse |
response |
protected KeycloakSession |
session |
Constructor and Description |
---|
AdminConsole(RealmModel realm) |
Modifier and Type | Method and Description |
---|---|
ClientManager.InstallationAdapterConfig |
config()
Adapter configuration for the admin console for this realm
|
protected RealmModel |
getAdminstrationRealm(RealmManager realmManager) |
javax.ws.rs.core.Response |
getIndexHtmlRedirect() |
javax.ws.rs.core.Response |
getMainPage()
Main page of this realm's admin console
|
Properties |
getMessages(String lang) |
javax.ws.rs.core.Response |
logout()
Logout from the admin console
|
javax.ws.rs.core.Response |
whoAmI(javax.ws.rs.core.HttpHeaders headers)
Permission information
|
protected static final org.jboss.logging.Logger logger
@Context protected ClientConnection clientConnection
@Context protected org.jboss.resteasy.spi.HttpRequest request
@Context protected org.jboss.resteasy.spi.HttpResponse response
@Context protected KeycloakSession session
@Context protected javax.ws.rs.ext.Providers providers
protected AppAuthManager authManager
protected RealmModel realm
public AdminConsole(RealmModel realm)
@Path(value="config") @GET @Produces(value="application/json") public ClientManager.InstallationAdapterConfig config()
@Path(value="whoami") @GET @Produces(value="application/json") public javax.ws.rs.core.Response whoAmI(@Context javax.ws.rs.core.HttpHeaders headers)
headers
- @Path(value="logout") @GET public javax.ws.rs.core.Response logout()
protected RealmModel getAdminstrationRealm(RealmManager realmManager)
@GET public javax.ws.rs.core.Response getMainPage() throws IOException, FreeMarkerException
URISyntaxException
IOException
FreeMarkerException
@GET @Path(value="{indexhtml: index.html}") public javax.ws.rs.core.Response getIndexHtmlRedirect()
@GET @Path(value="messages.json") @Produces(value="application/json") public Properties getMessages(@QueryParam(value="lang") String lang)
Copyright © 2020 JBoss by Red Hat. All rights reserved.