FileDocCategorySizeDatePackage
SecurityDomainManager.javaAPI DocJBoss 4.2.12016Fri Jul 13 20:53:52 BST 2007org.jboss.ejb3.security

SecurityDomainManager

public class SecurityDomainManager extends Object
Utility class that deals with the authentication/authorization managers associated with a security domain
author
Anil Saldhana
since
Oct 9, 2006
version
$Revision$

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.ObjectgetSecurityManager(java.lang.String securityDomain, javax.naming.InitialContext ctx)

 
      return ctx.lookup(preProcessSecurityDomain(securityDomain)); 
   
private static java.lang.StringpreProcessSecurityDomain(java.lang.String domainValue)
Ensure that the security domain is of the proper format

param
domainValue
return

 
      if(domainValue.startsWith("java:/jaas"))
         return domainValue;
      else
         return "java:/jaas/" + domainValue;