Tabnine Logo
SimpleGroup
Code IndexAdd Tabnine 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)

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
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • 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 TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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