public interface KeycloakContext
Modifier and Type | Method and Description |
---|---|
AuthenticationSessionModel |
getAuthenticationSession()
Get current AuthenticationSessionModel, can be null out of the AuthenticationSession context.
|
URI |
getAuthServerUrl() |
ClientModel |
getClient() |
ClientConnection |
getConnection() |
<T> T |
getContextObject(Class<T> clazz) |
String |
getContextPath() |
RealmModel |
getRealm() |
javax.ws.rs.core.HttpHeaders |
getRequestHeaders() |
KeycloakUriInfo |
getUri()
Returns the URI assuming it is a frontend request.
|
KeycloakUriInfo |
getUri(UrlType type)
Returns the URI.
|
Locale |
resolveLocale(UserModel user) |
void |
setAuthenticationSession(AuthenticationSessionModel authenticationSession) |
void |
setClient(ClientModel client) |
void |
setRealm(RealmModel realm) |
URI getAuthServerUrl()
String getContextPath()
KeycloakUriInfo getUri()
getUri(UrlType)
KeycloakUriInfo getUri(UrlType type)
type
- the type of the requestjavax.ws.rs.core.HttpHeaders getRequestHeaders()
<T> T getContextObject(Class<T> clazz)
RealmModel getRealm()
void setRealm(RealmModel realm)
ClientModel getClient()
void setClient(ClientModel client)
ClientConnection getConnection()
AuthenticationSessionModel getAuthenticationSession()
void setAuthenticationSession(AuthenticationSessionModel authenticationSession)
Copyright © 2021 JBoss by Red Hat. All rights reserved.