Class JPAAuthorizationStoreFactory
java.lang.Object
org.keycloak.authorization.jpa.store.JPAAuthorizationStoreFactory
- All Implemented Interfaces:
AuthorizationStoreFactory,ProviderFactory<StoreFactory>
- Author:
- Pedro Igor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RealmModelLegacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) getId()voidinit(Config.Scope config) Only called once when the factory is first created.intorder()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authorization.store.AuthorizationStoreFactory
postInit, registerSynchronizationListenersMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata
-
Field Details
-
NULL_REALM
Legacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter. The parameter was introduced for usage only in the new storage. Therefore, in some cases we may break our rule specified in JavaDoc and usenullvalue as parameter that otherwise cannot benull. We need to be careful and place such value only to a method call that cannot end up in the new store because it would end withNullPointerException. To mark all places where we do this, we use this variable so it is easily searchable.
-
-
Constructor Details
-
JPAAuthorizationStoreFactory
public JPAAuthorizationStoreFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<StoreFactory>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory<StoreFactory>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<StoreFactory>
-
getId
- Specified by:
getIdin interfaceProviderFactory<StoreFactory>
-
order
public int order()- Specified by:
orderin interfaceProviderFactory<StoreFactory>
-