Package org.keycloak.services
Class DefaultKeycloakContext
java.lang.Object
org.keycloak.services.DefaultKeycloakContext
- All Implemented Interfaces:
KeycloakContext
- Author:
- Stian Thorgersen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ClientConnectionprotected abstract HttpRequestprotected abstract HttpResponsegetRealm()jakarta.ws.rs.core.HttpHeadersDeprecated.protected KeycloakSessiongetUri()getUser()resolveLocale(UserModel user) resolveLocale(UserModel user, Theme.Type themeType) voidsetAuthenticationSession(AuthenticationSessionModel authenticationSession) voidsetBearerToken(Token token) voidsetClient(ClientModel client) voidsetConnection(ClientConnection clientConnection) voidsetHttpRequest(HttpRequest httpRequest) voidsetHttpResponse(HttpResponse httpResponse) voidsetOrganization(OrganizationModel organization) voidsetRealm(RealmModel realm) voidsetUserSession(UserSessionModel userSession) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.KeycloakContext
getContextObject
-
Field Details
-
session
-
-
Constructor Details
-
DefaultKeycloakContext
-
-
Method Details
-
getAuthServerUrl
- Specified by:
getAuthServerUrlin interfaceKeycloakContext
-
getContextPath
- Specified by:
getContextPathin interfaceKeycloakContext
-
getUri
- Specified by:
getUriin interfaceKeycloakContext
-
getUri
- Specified by:
getUriin interfaceKeycloakContext
-
getRequestHeaders
Deprecated.UsegetHttpRequest()to obtain the request headers.- Specified by:
getRequestHeadersin interfaceKeycloakContext- Returns:
-
getRealm
- Specified by:
getRealmin interfaceKeycloakContext
-
setRealm
- Specified by:
setRealmin interfaceKeycloakContext
-
getClient
- Specified by:
getClientin interfaceKeycloakContext
-
setClient
- Specified by:
setClientin interfaceKeycloakContext
-
getOrganization
- Specified by:
getOrganizationin interfaceKeycloakContext
-
setOrganization
- Specified by:
setOrganizationin interfaceKeycloakContext
-
getConnection
- Specified by:
getConnectionin interfaceKeycloakContext
-
resolveLocale
- Specified by:
resolveLocalein interfaceKeycloakContext
-
resolveLocale
- Specified by:
resolveLocalein interfaceKeycloakContext
-
getAuthenticationSession
- Specified by:
getAuthenticationSessionin interfaceKeycloakContext
-
setAuthenticationSession
- Specified by:
setAuthenticationSessionin interfaceKeycloakContext
-
getHttpRequest
- Specified by:
getHttpRequestin interfaceKeycloakContext
-
getHttpResponse
- Specified by:
getHttpResponsein interfaceKeycloakContext
-
createClientConnection
-
createHttpRequest
-
createHttpResponse
-
getSession
-
setConnection
- Specified by:
setConnectionin interfaceKeycloakContext
-
setHttpRequest
- Specified by:
setHttpRequestin interfaceKeycloakContext
-
setHttpResponse
- Specified by:
setHttpResponsein interfaceKeycloakContext
-
getUserSession
- Specified by:
getUserSessionin interfaceKeycloakContext
-
setUserSession
- Specified by:
setUserSessionin interfaceKeycloakContext
-
setBearerToken
- Specified by:
setBearerTokenin interfaceKeycloakContext
-
getBearerToken
- Specified by:
getBearerTokenin interfaceKeycloakContext
-
getUser
- Specified by:
getUserin interfaceKeycloakContext
-
getHttpRequest()to obtain the request headers.