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 HttpRequest
request
protected HttpResponse
response
protected KeycloakSession
session
-
Constructor Summary
Constructors Constructor Description PublicRealmResource(KeycloakSession session)
-
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
protected final HttpRequest request
-
response
protected final HttpResponse response
-
session
protected final KeycloakSession session
-
realm
protected final RealmModel realm
-
-
Constructor Detail
-
PublicRealmResource
public PublicRealmResource(KeycloakSession session)
-
-
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)
-
-