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 KeycloakApplication |
keycloak |
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 |
protected javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
AdminConsole(RealmModel realm) |
Modifier and Type | Method and Description |
---|---|
ApplicationManager.InstallationAdapterConfig |
config()
Adapter configuration for the admin console for this realm
|
protected RealmModel |
getAdminstrationRealm(RealmManager realmManager) |
javax.ws.rs.core.Response |
getKeycloakJs()
Javascript used by admin console
|
javax.ws.rs.core.Response |
getMainPage()
Main page of this realm's admin console
|
javax.ws.rs.core.Response |
getResource(String path)
Theme resources for this realm's admin console.
|
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 javax.ws.rs.core.UriInfo uriInfo
@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
@Context protected KeycloakApplication keycloak
protected AppAuthManager authManager
protected RealmModel realm
public AdminConsole(RealmModel realm)
@Path(value="config") @GET @Produces(value="application/json") public ApplicationManager.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 URISyntaxException
URISyntaxException
@GET @Path(value="js/keycloak.js") @Produces(value="text/javascript") public javax.ws.rs.core.Response getKeycloakJs()
@GET @Path(value="{path:.+}") public javax.ws.rs.core.Response getResource(@PathParam(value="path") String path)
path
- Copyright © 2014. All Rights Reserved.