Package org.jboss.security

Examples of org.jboss.security.SecurityRoleRef


      //             security ref is found.
      boolean matchFound = false;
      Iterator<SecurityRoleRef> it = this.securityRoleReferences.iterator();
      while ( it.hasNext())
      {
         SecurityRoleRef meta = it.next();
         if (meta.getName().equals(roleName))
         {
            roleName = meta.getLink();
            matchFound = true;
            break;
         }
      }
View Full Code Here


     
      //TODO: Get rid of this conversion asap
      Set<SecurityRoleRef> srset = new HashSet<SecurityRoleRef>();
      for(SecurityRoleRefMetaData srmd: roleRefs)
      {
         srset.add(new SecurityRoleRef(srmd.getRoleName(),srmd.getRoleLink(),null));
      }
      Principal principal = getCallerPrincipal();
      EJBAuthorizationHelper helper = new EJBAuthorizationHelper(sc);
      return helper.isCallerInRole(roleName,
                                   ejbc.getEjbName(),
View Full Code Here

      //             security ref is found.
      boolean matchFound = false;
      Iterator<SecurityRoleRef> it = this.securityRoleReferences.iterator();
      while ( it.hasNext())
      {
         SecurityRoleRef meta = it.next();
         if (meta.getName().equals(roleName))
         {
            roleName = meta.getLink();
            matchFound = true;
            break;
         }
      }
View Full Code Here

      //             security ref is found.
      boolean matchFound = false;
      Iterator it = this.securityRoleReferences.iterator();
      while ( it.hasNext())
      {
         SecurityRoleRef meta = (SecurityRoleRef) it.next();
         if (meta.getName().equals(roleName))
         {
            roleName = meta.getLink();
            matchFound = true;
            break;
         }
      }
View Full Code Here

/*     */
/* 219 */     boolean matchFound = false;
/* 220 */     Iterator it = this.securityRoleReferences.iterator();
/* 221 */     while (it.hasNext())
/*     */     {
/* 223 */       SecurityRoleRef meta = (SecurityRoleRef)it.next();
/* 224 */       if (meta.getName().equals(this.roleName))
/*     */       {
/* 226 */         this.roleName = meta.getLink();
/* 227 */         matchFound = true;
/* 228 */         break;
/*     */       }
/*     */     }
/*     */
View Full Code Here

/* 508 */       Iterator it = EnterpriseContext.this.getContainer().getBeanMetaData().getSecurityRoleReferences();
/* 509 */       Set securityRoleRefs = new HashSet();
/* 510 */       while (it.hasNext())
/*     */       {
/* 512 */         SecurityRoleRefMetaData meta = (SecurityRoleRefMetaData)it.next();
/* 513 */         securityRoleRefs.add(new SecurityRoleRef(meta.getName(), meta.getLink(), meta.getDescription()));
/*     */       }
/*     */
/* 516 */       Subject contextSubject = null;
/*     */       try
/*     */       {
View Full Code Here

/*     */     }
/*     */
/* 235 */     Set srset = new HashSet();
/* 236 */     for (SecurityRoleRefMetaData srmd : roleRefs)
/*     */     {
/* 238 */       srset.add(new SecurityRoleRef(srmd.getRoleName(), srmd.getRoleLink(), null));
/*     */     }
/* 240 */     Principal principal = getCallerPrincipal();
/* 241 */     EJBAuthorizationHelper helper = new EJBAuthorizationHelper(sc);
/* 242 */     return helper.isCallerInRole(roleName, ejbc.getEjbName(), principal, srset);
/*     */   }
View Full Code Here

      //             security ref is found.
      boolean matchFound = false;
      Iterator it = this.securityRoleReferences.iterator();
      while ( it.hasNext())
      {
         SecurityRoleRef meta = (SecurityRoleRef) it.next();
         if (meta.getName().equals(roleName))
         {
            roleName = meta.getLink();
            matchFound = true;
            break;
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.security.SecurityRoleRef

Copyright © 2018 www.massapicom. 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.