Examples of PrincipalEntry


Examples of com.sun.enterprise.security.provider.PolicyParser.PrincipalEntry

        while (pit.hasNext()){
      Principal prin = (Principal) pit.next();

      if (prin != null) {
          withPrincipals = true;
          PrincipalEntry prinEntry =
        new PrincipalEntry(prin.getClass().getName(),
               escapeName(prin.getName()));
          GrantEntry grant = new GrantEntry();
          grant.principals.add(prinEntry);
          Enumeration pEnum = rolePerms.elements();
          while (pEnum.hasMoreElements()) {
        Permission perm = (Permission) pEnum.nextElement();
        PermissionEntry permEntry =
            new PermissionEntry(perm.getClass().getName(),
              perm.getName(),
              perm.getActions());
        grant.add(permEntry);
          }
          parser.add(grant);
      }
      else {
                            String msg = localStrings.getLocalString("pc.non_principal_mapped_to_role",
                                         "non principal mapped to role "+roleName,new Object[]{prin,roleName});
          logger.log(Level.WARNING,msg);
      }
        }
    }
    /**
     * JACC MR8 add grant for the any authenticated user role '**'
     */
    if (!withPrincipals && ("**".equals(roleName))) {
      withPrincipals = true;
      PrincipalEntry prinEntry = new PrincipalEntry(
          PrincipalEntry.WILDCARD_CLASS,PrincipalEntry.WILDCARD_NAME);
      GrantEntry grant = new GrantEntry();
      grant.principals.add(prinEntry);
      Enumeration pEnum = rolePerms.elements();
      while (pEnum.hasMoreElements()) {
View Full Code Here

Examples of com.sun.enterprise.security.provider.PolicyParser.PrincipalEntry

        while (pit.hasNext()){
      Principal prin = (Principal) pit.next();

      if (prin != null) {
          withPrincipals = true;
          PrincipalEntry prinEntry =
        new PrincipalEntry(prin.getClass().getName(),
               escapeName(prin.getName()));
          GrantEntry grant = new GrantEntry();
          grant.principals.add(prinEntry);
          Enumeration pEnum = rolePerms.elements();
          while (pEnum.hasMoreElements()) {
View Full Code Here

Examples of com.sun.enterprise.security.provider.PolicyParser.PrincipalEntry

        while (pit.hasNext()){
      Principal prin = (Principal) pit.next();
      assert prin instanceof java.security.Principal;
      if (prin instanceof java.security.Principal) {
          withPrincipals = true;
          PrincipalEntry prinEntry =
        new PrincipalEntry(prin.getClass().getName(),
               escapeName(prin.getName()));
          GrantEntry grant = new GrantEntry();
          grant.principals.add(prinEntry);
          Enumeration pEnum = rolePerms.elements();
          while (pEnum.hasMoreElements()) {
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.