Codota Logo
RealmModel$ClientRemovedEvent.getKeycloakSession
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Path (java.nio.file)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now