congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RealmModel$ClientRemovedEvent.getClient
Code IndexAdd Tabnine to your IDE (free)

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

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

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

StoreFactory storeFactory = provider.getStoreFactory();
PolicyStore policyStore = storeFactory.getPolicyStore();
ClientModel removedClient = ((ClientRemovedEvent) event).getClient();
ResourceServerStore resourceServerStore = storeFactory.getResourceServerStore();
ResourceServer resourceServer = resourceServerStore.findById(removedClient.getId());
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$ClientRemovedEventgetClient

Popular methods of RealmModel$ClientRemovedEvent

  • getKeycloakSession

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
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