Class AdminRoot
java.lang.Object
org.keycloak.services.resources.admin.AdminRoot
Root resource for admin console and admin REST API
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.jboss.logging.Logger
protected KeycloakSession
protected TokenManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.UriBuilder
adminBaseUrl
(jakarta.ws.rs.core.UriBuilder base) static jakarta.ws.rs.core.UriBuilder
adminBaseUrl
(jakarta.ws.rs.core.UriInfo uriInfo) static jakarta.ws.rs.core.UriBuilder
adminConsoleUrl
(jakarta.ws.rs.core.UriBuilder base) static jakarta.ws.rs.core.UriBuilder
adminConsoleUrl
(jakarta.ws.rs.core.UriInfo uriInfo) protected AdminAuth
authenticateRealmAdminRequest
(jakarta.ws.rs.core.HttpHeaders headers) getAdminConsole
(String name) path to realm admin console uistatic Properties
getMessages
(KeycloakSession session, RealmModel realm, String lang) static Properties
getMessages
(KeycloakSession session, RealmModel realm, String lang, String... bundles) Base Path to realm admin REST interfaceGeneral information about the serverstatic Theme
getTheme
(KeycloakSession session, RealmModel realm) jakarta.ws.rs.core.Response
Convenience path to master realm admin consolejakarta.ws.rs.core.Response
Convenience path to master realm admin consolestatic jakarta.ws.rs.core.UriBuilder
realmsUrl
(jakarta.ws.rs.core.UriBuilder base) static jakarta.ws.rs.core.UriBuilder
realmsUrl
(jakarta.ws.rs.core.UriInfo uriInfo) protected void
resolveRealmAndUpdateSession
(String name, KeycloakSession session)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
tokenManager
-
session
-
-
Constructor Details
-
AdminRoot
public AdminRoot()
-
-
Method Details
-
adminBaseUrl
public static jakarta.ws.rs.core.UriBuilder adminBaseUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
adminBaseUrl
public static jakarta.ws.rs.core.UriBuilder adminBaseUrl(jakarta.ws.rs.core.UriBuilder base) -
masterRealmAdminConsoleRedirect
@GET public jakarta.ws.rs.core.Response masterRealmAdminConsoleRedirect()Convenience path to master realm admin console- Returns:
-
masterRealmAdminConsoleRedirectHtml
@Path("index.{html:html}") @GET public jakarta.ws.rs.core.Response masterRealmAdminConsoleRedirectHtml()Convenience path to master realm admin console- Returns:
-
resolveRealmAndUpdateSession
-
adminConsoleUrl
public static jakarta.ws.rs.core.UriBuilder adminConsoleUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
adminConsoleUrl
public static jakarta.ws.rs.core.UriBuilder adminConsoleUrl(jakarta.ws.rs.core.UriBuilder base) -
getAdminConsole
path to realm admin console ui- Parameters:
name
- Realm name (not id!)- Returns:
-
authenticateRealmAdminRequest
-
realmsUrl
public static jakarta.ws.rs.core.UriBuilder realmsUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
realmsUrl
public static jakarta.ws.rs.core.UriBuilder realmsUrl(jakarta.ws.rs.core.UriBuilder base) -
getRealmsAdmin
Base Path to realm admin REST interface- Parameters:
headers
-- Returns:
-
preFlight
-
getServerInfo
General information about the server- Parameters:
headers
-- Returns:
-
getTheme
- Throws:
IOException
-
getMessages
-
getMessages
public static Properties getMessages(KeycloakSession session, RealmModel realm, String lang, String... bundles)
-