Codota Logo
SimpleGroup
Code IndexAdd Codota to your IDE (free)

How to use
SimpleGroup
in
org.keycloak.adapters.tomcat

Best Java code snippets using org.keycloak.adapters.tomcat.SimpleGroup (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.keycloak/spring-boot-container-bundle

protected Group[] getRoleSets(Collection<String> roleSet) {
  SimpleGroup roles = new SimpleGroup("Roles");
  Group[] roleSets = {roles};
  for (String role : roleSet) {
    roles.addMember(new SimplePrincipal(role));
  }
  return roleSets;
}
origin: org.keycloak/spring-boot-container-bundle

protected Group createGroup(String name, Set<Principal> principals) {
  Group roles = null;
  Iterator<Principal> iter = principals.iterator();
  while (iter.hasNext()) {
    Object next = iter.next();
    if (!(next instanceof Group))
      continue;
    Group grp = (Group) next;
    if (grp.getName().equals(name)) {
      roles = grp;
      break;
    }
  }
  // If we did not find a group create one
  if (roles == null) {
    roles = new SimpleGroup(name);
    principals.add(roles);
  }
  return roles;
}
origin: org.keycloak/keycloak-tomcat-adapter-spi

protected Group createGroup(String name, Set<Principal> principals) {
  Group roles = null;
  Iterator<Principal> iter = principals.iterator();
  while (iter.hasNext()) {
    Object next = iter.next();
    if (!(next instanceof Group))
      continue;
    Group grp = (Group) next;
    if (grp.getName().equals(name)) {
      roles = grp;
      break;
    }
  }
  // If we did not find a group create one
  if (roles == null) {
    roles = new SimpleGroup(name);
    principals.add(roles);
  }
  return roles;
}
origin: org.keycloak/keycloak-tomcat-adapter-spi

protected Group[] getRoleSets(Collection<String> roleSet) {
  SimpleGroup roles = new SimpleGroup("Roles");
  Group[] roleSets = {roles};
  for (String role : roleSet) {
    roles.addMember(new SimplePrincipal(role));
  }
  return roleSets;
}
org.keycloak.adapters.tomcatSimpleGroup

Most used methods

  • <init>
    Creates a new group with the given name.
  • addMember

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
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