Tabnine Logo
RealmModel$ClientRemovedEvent.getKeycloakSession
Code IndexAdd Tabnine to your IDE (free)

How to use
getKeycloakSession
method
in
org.keycloak.models.RealmModel$ClientRemovedEvent

Best Java code snippets using org.keycloak.models.RealmModel$ClientRemovedEvent.getKeycloakSession (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-authz-policy-common

factory.register(event -> {
  if (event instanceof ClientRemovedEvent) {
    KeycloakSession keycloakSession = ((ClientRemovedEvent) event).getKeycloakSession();
    AuthorizationProvider provider = keycloakSession.getProvider(AuthorizationProvider.class);
    StoreFactory storeFactory = provider.getStoreFactory();
origin: org.keycloak/keycloak-model-infinispan

private SessionAndKeyHolder getCacheKeyToInvalidate(ProviderEvent event) {
  if (event instanceof RealmModel.ClientUpdatedEvent) {
    RealmModel.ClientUpdatedEvent eventt = (RealmModel.ClientUpdatedEvent) event;
    String cacheKey = PublicKeyStorageUtils.getClientModelCacheKey(eventt.getUpdatedClient().getRealm().getId(), eventt.getUpdatedClient().getId());
    return new SessionAndKeyHolder(eventt.getKeycloakSession(), cacheKey);
  } else if (event instanceof RealmModel.ClientRemovedEvent) {
    RealmModel.ClientRemovedEvent eventt = (RealmModel.ClientRemovedEvent) event;
    String cacheKey = PublicKeyStorageUtils.getClientModelCacheKey(eventt.getClient().getRealm().getId(), eventt.getClient().getId());
    return new SessionAndKeyHolder(eventt.getKeycloakSession(), cacheKey);
  } else if (event instanceof RealmModel.IdentityProviderUpdatedEvent) {
    RealmModel.IdentityProviderUpdatedEvent eventt = (RealmModel.IdentityProviderUpdatedEvent) event;
    String cacheKey = PublicKeyStorageUtils.getIdpModelCacheKey(eventt.getRealm().getId(), eventt.getUpdatedIdentityProvider().getInternalId());
    return new SessionAndKeyHolder(eventt.getKeycloakSession(), cacheKey);
  } else if (event instanceof RealmModel.IdentityProviderRemovedEvent) {
    RealmModel.IdentityProviderRemovedEvent eventt = (RealmModel.IdentityProviderRemovedEvent) event;
    String cacheKey = PublicKeyStorageUtils.getIdpModelCacheKey(eventt.getRealm().getId(), eventt.getRemovedIdentityProvider().getInternalId());
    return new SessionAndKeyHolder(eventt.getKeycloakSession(), cacheKey);
  } else {
    return null;
  }
}
org.keycloak.modelsRealmModel$ClientRemovedEventgetKeycloakSession

Popular methods of RealmModel$ClientRemovedEvent

  • getClient

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now