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 HttpRequestprotected HttpResponse<T> TgetContextObject(Class<T> clazz) getRealm()jakarta.ws.rs.core.HttpHeadersDeprecated.protected KeycloakSessiongetUri()resolveLocale(UserModel user) voidsetAuthenticationSession(AuthenticationSessionModel authenticationSession) voidsetClient(ClientModel client) voidsetRealm(RealmModel realm)
-
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:
-
getContextObject
- Specified by:
getContextObjectin interfaceKeycloakContext
-
getRealm
- Specified by:
getRealmin interfaceKeycloakContext
-
setRealm
- Specified by:
setRealmin interfaceKeycloakContext
-
getClient
- Specified by:
getClientin interfaceKeycloakContext
-
setClient
- Specified by:
setClientin interfaceKeycloakContext
-
getConnection
- Specified by:
getConnectionin 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
-
createHttpRequest
-
createHttpResponse
-
getSession
-
getHttpRequest()to obtain the request headers.