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() |
HttpHeaders |
getRequestHeaders() |
KeycloakUriInfo |
getUri() |
Locale |
resolveLocale(UserModel user) |
void |
setAuthenticationSession(AuthenticationSessionModel authenticationSession) |
void |
setClient(ClientModel client) |
void |
setConnection(ClientConnection connection) |
void |
setRealm(RealmModel realm) |
URI getAuthServerUrl()
String getContextPath()
KeycloakUriInfo getUri()
HttpHeaders getRequestHeaders()
<T> T getContextObject(Class<T> clazz)
RealmModel getRealm()
void setRealm(RealmModel realm)
ClientModel getClient()
void setClient(ClientModel client)
ClientConnection getConnection()
void setConnection(ClientConnection connection)
AuthenticationSessionModel getAuthenticationSession()
void setAuthenticationSession(AuthenticationSessionModel authenticationSession)
Copyright © 2020 JBoss by Red Hat. All rights reserved.