Package org.keycloak.services
Class DefaultKeycloakSession
java.lang.Object
org.keycloak.services.DefaultKeycloakSession
- All Implemented Interfaces:
AutoCloseable,KeycloakSession
- Author:
- Stian Thorgersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclients()voidclose()protected RuntimeExceptionprotected abstract DefaultKeycloakContextcreateKeycloakContext(KeycloakSession session) voidenlistForClose(Provider provider) getAllProviders(Class<T> clazz) getAttribute(String attribute) <T> TgetAttribute(String attribute, Class<T> clazz) <T extends Provider>
TgetComponentProvider(Class<T> clazz, String componentId) <T extends Provider>
TgetComponentProvider(Class<T> clazz, String componentId, Function<KeycloakSessionFactory, ComponentModel> modelGetter) <T extends Provider>
TgetProvider(Class<T> clazz) <T extends Provider>
TgetProvider(Class<T> clazz, String id) <T extends Provider>
TgetProvider(Class<T> clazz, ComponentModel componentModel) getProviderClass(String providerClassName) groups()voidinvalidate(InvalidationHandler.InvalidableObjectType type, Object... ids) booleanisClosed()keys()listProviderIds(Class<T> clazz) realms()removeAttribute(String attribute) roles()sessions()voidsetAttribute(String name, Object value) theme()tokens()toString()users()vault()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.keycloak.models.KeycloakSession
getAttributeOrDefault
-
Constructor Details
-
DefaultKeycloakSession
-
-
Method Details
-
getContext
- Specified by:
getContextin interfaceKeycloakSession
-
invalidate
- Specified by:
invalidatein interfaceKeycloakSession
-
enlistForClose
- Specified by:
enlistForClosein interfaceKeycloakSession
-
getAttribute
- Specified by:
getAttributein interfaceKeycloakSession
-
getAttribute
- Specified by:
getAttributein interfaceKeycloakSession
-
removeAttribute
- Specified by:
removeAttributein interfaceKeycloakSession
-
setAttribute
- Specified by:
setAttributein interfaceKeycloakSession
-
getAttributes
- Specified by:
getAttributesin interfaceKeycloakSession
-
getTransactionManager
- Specified by:
getTransactionManagerin interfaceKeycloakSession
-
getKeycloakSessionFactory
- Specified by:
getKeycloakSessionFactoryin interfaceKeycloakSession
-
users
- Specified by:
usersin interfaceKeycloakSession
-
getProvider
- Specified by:
getProviderin interfaceKeycloakSession
-
getProvider
- Specified by:
getProviderin interfaceKeycloakSession
-
getComponentProvider
- Specified by:
getComponentProviderin interfaceKeycloakSession
-
getComponentProvider
public <T extends Provider> T getComponentProvider(Class<T> clazz, String componentId, Function<KeycloakSessionFactory, ComponentModel> modelGetter) - Specified by:
getComponentProviderin interfaceKeycloakSession
-
getProvider
- Specified by:
getProviderin interfaceKeycloakSession
-
listProviderIds
- Specified by:
listProviderIdsin interfaceKeycloakSession
-
getAllProviders
- Specified by:
getAllProvidersin interfaceKeycloakSession
-
getProviderClass
- Specified by:
getProviderClassin interfaceKeycloakSession
-
realms
- Specified by:
realmsin interfaceKeycloakSession
-
clients
- Specified by:
clientsin interfaceKeycloakSession
-
clientScopes
- Specified by:
clientScopesin interfaceKeycloakSession
-
groups
- Specified by:
groupsin interfaceKeycloakSession
-
roles
- Specified by:
rolesin interfaceKeycloakSession
-
sessions
- Specified by:
sessionsin interfaceKeycloakSession
-
loginFailures
- Specified by:
loginFailuresin interfaceKeycloakSession
-
authenticationSessions
- Specified by:
authenticationSessionsin interfaceKeycloakSession
-
singleUseObjects
- Specified by:
singleUseObjectsin interfaceKeycloakSession
-
identityProviders
- Specified by:
identityProvidersin interfaceKeycloakSession
-
keys
- Specified by:
keysin interfaceKeycloakSession
-
theme
- Specified by:
themein interfaceKeycloakSession
-
tokens
- Specified by:
tokensin interfaceKeycloakSession
-
vault
- Specified by:
vaultin interfaceKeycloakSession
-
clientPolicy
- Specified by:
clientPolicyin interfaceKeycloakSession
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceKeycloakSession
-
closeTransactionManager
-
toString
-
createKeycloakContext
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceKeycloakSession
-