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

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JCheckBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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