Examples of members()


Examples of com.sun.tools.xjc.reader.dtd.bindinfo.BIInterface.members()

        // and populate its expression according to the members attribute.
        for( Map.Entry<BIInterface,JClass> e : decls.entrySet() ) {
            BIInterface decl = e.getKey();
            JClass c = e.getValue();

            for (String member : decl.members()) {
                InterfaceAcceptor acc = fromName.get(member);
                if (acc == null) {
                    // there is no such class/interface
                    // TODO: error location
                    error(decl.getSourceLocation(),
View Full Code Here

Examples of gololang.GoloStruct.members()

    Method fun_foo_bar_baz = moduleClass.getMethod("fun_foo_bar_baz");
    result = fun_foo_bar_baz.invoke(null);
    assertThat(result, instanceOf(GoloStruct.class));
    struct = (GoloStruct) result;
    assertThat(struct.members().size(), is(2));
    assertThat(struct.values().size(), is(2));
    structIterator = struct.iterator();
    assertThat(structIterator.hasNext(), is(true));
    assertThat(structIterator.next(), is(new Tuple("foo", 1)));
    assertThat(structIterator.hasNext(), is(true));
View Full Code Here

Examples of java.security.acl.Group.members()

   
    Set<Principal> principals = this.subject.getPrincipals();
    for(Principal p: principals) {
      if ((p instanceof Group) && p.getName().equals("Roles")){ //$NON-NLS-1$
        Group g = (Group)p;
        Enumeration<? extends Principal> rolesPrinciples = g.members();
        while(rolesPrinciples.hasMoreElements()) {
          roles.add(rolesPrinciples.nextElement().getName())
        }
      }
    }
View Full Code Here

Examples of java.security.acl.Group.members()

      Group group = (Group) iterator.next();
      // Signed group (empty group that contains a signature)?
      if (group instanceof JSigned) {
        continue;
      }
      Enumeration e = group.members();
      while (e.hasMoreElements()) {
        Principal p = (Principal) e.nextElement();
        principalRoles.add(p.getName());
      }
    }
View Full Code Here

Examples of java.security.acl.Group.members()

    Set<Principal> principals = getSubject().getPrincipals();
    for(Principal p: principals) {
      // this JBoss specific, but no code level dependencies
      if ((p instanceof Group) && p.getName().equals("Roles")){ //$NON-NLS-1$
        Group g = (Group)p;
        Enumeration<? extends Principal> rolesPrinciples = g.members();
        while(rolesPrinciples.hasMoreElements()) {
          roles.add(rolesPrinciples.nextElement().getName())
        }
      }
    }
View Full Code Here

Examples of java.security.acl.Group.members()

      Set groups = subject.getPrincipals(Group.class);
      Set principals = subject.getPrincipals();
      assertTrue("Principals contains Java Duke", principals.contains(new SimplePrincipal("jduke")));
      assertTrue("Principals contains Roles", groups.contains(new SimplePrincipal("Roles")));
      Group roles = (Group) groups.iterator().next();
      Enumeration names = roles.members();
      while( names.hasMoreElements() )
      {
         System.out.println(names.nextElement());
      }
      assertTrue("inf_map_vmware_iso_S is a role", roles.isMember(new SimplePrincipal("inf_map_vmware_iso_S")));
View Full Code Here

Examples of java.security.acl.Group.members()

   */
  public static List<String> getRoles(Subject subject) {
    List<String> roles = new ArrayList<String>();
    Group subjectRoles = getRolesGroup(subject);
    if (subjectRoles != null) {
      for (Enumeration<? extends Principal> rolesEnum = subjectRoles.members(); rolesEnum
          .hasMoreElements();) {
        roles.add(rolesEnum.nextElement().getName());
      }
    }
    return roles;
View Full Code Here

Examples of java.security.acl.Group.members()

         Group group = (Group) roleGroups.get(roleGroup);
         String[] names = {};
         if( group != null )
         {
            ArrayList tmp = new ArrayList();
            Enumeration iter = group.members();
            while( iter.hasMoreElements() )
            {
               Principal p = (Principal) iter.nextElement();
               tmp.add(p.getName());
            }
View Full Code Here

Examples of java.security.acl.Group.members()

                        principal = p;
                    }
                    if (p instanceof Group) {
                        Group g = Group.class.cast(p);
                        if (g.getName().equals("CallerPrincipal") && callerPrincipal == null) {
                            Enumeration<? extends Principal> e = g.members();
                            if (e.hasMoreElements())
                                callerPrincipal = e.nextElement();
                        }
                    }
                }
View Full Code Here

Examples of java.security.acl.Group.members()

                        principal = p;
                    }
                    if (p instanceof Group) {
                        Group g = Group.class.cast(p);
                        if (g.getName().equals(SecurityConstants.CALLER_PRINCIPAL_GROUP) && callerPrincipal == null) {
                            Enumeration<? extends Principal> e = g.members();
                            if (e.hasMoreElements())
                                callerPrincipal = e.nextElement();
                        }
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.