Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.ejb3.security;
 /*    */ 
 /*    */ import javax.naming.InitialContext;
 /*    */ import javax.naming.NamingException;
 /*    */ 
 /*    */ public class SecurityDomainManager
 /*    */ {
 /*    */   public static Object getSecurityManager(String securityDomainInitialContext ctx)
 /*    */     throws NamingException
/*    */   {
/* 41 */     return ctx.lookup(preProcessSecurityDomain(securityDomain));
/*    */   }
/*    */ 
/*    */   private static String preProcessSecurityDomain(String domainValue)
/*    */   {
/* 51 */     if (domainValue.startsWith("java:/jaas")) {
/* 52 */       return domainValue;
/*    */     }
/* 54 */     return "java:/jaas/" + domainValue;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.security.SecurityDomainManager
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X