Package org.keycloak.services.resources
Class PublicRealmResource
- java.lang.Object
-
- org.keycloak.services.resources.PublicRealmResource
-
public class PublicRealmResource extends Object
Resource class for public realm information- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Logger
logger
protected RealmModel
realm
protected org.jboss.resteasy.spi.HttpRequest
request
protected org.jboss.resteasy.spi.HttpResponse
response
protected KeycloakSession
session
-
Constructor Summary
Constructors Constructor Description PublicRealmResource(RealmModel realm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
accountPreflight()
CORS preflightPublishedRealmRepresentation
getRealm()
Public information about the realm.static PublishedRealmRepresentation
realmRep(KeycloakSession session, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Field Detail
-
logger
protected static final org.jboss.logging.Logger logger
-
request
@Context protected org.jboss.resteasy.spi.HttpRequest request
-
response
@Context protected org.jboss.resteasy.spi.HttpResponse response
-
session
@Context protected KeycloakSession session
-
realm
protected RealmModel realm
-
-
Constructor Detail
-
PublicRealmResource
public PublicRealmResource(RealmModel realm)
-
-
Method Detail
-
accountPreflight
@Path("/") @OPTIONS public javax.ws.rs.core.Response accountPreflight()
CORS preflight- Returns:
-
getRealm
@GET @Produces("application/json") public PublishedRealmRepresentation getRealm()
Public information about the realm.- Returns:
-
realmRep
public static PublishedRealmRepresentation realmRep(KeycloakSession session, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo)
-
-