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() |
org.keycloak.common.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 |
setConnection(org.keycloak.common.ClientConnection connection) |
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)
org.keycloak.common.ClientConnection getConnection()
void setConnection(org.keycloak.common.ClientConnection connection)
AuthenticationSessionModel getAuthenticationSession()
void setAuthenticationSession(AuthenticationSessionModel authenticationSession)
Copyright © 2019 JBoss by Red Hat. All rights reserved.