FileDocCategorySizeDatePackage
PrincipalGroupFactory.javaAPI DocGlassfish v2 API2849Fri May 04 22:36:20 BST 2007com.sun.web.security

PrincipalGroupFactory

public class PrincipalGroupFactory extends Object
author
Harpreet Singh

Fields Summary
Constructors Summary
Methods Summary
public static com.sun.enterprise.deployment.GroupgetGroupInstance(java.lang.String name, java.lang.String realm)

        Group g = (Group)WebSecurityManager.getAdminGroup(name, realm);
        if(g == null){
            g = new Group(name);
        }
        return g;
    
public static com.sun.enterprise.deployment.PrincipalImplgetPrincipalInstance(java.lang.String name, java.lang.String realm)
Creates a new instance of PrincipalGroupFactory

        PrincipalImpl p = (PrincipalImpl)WebSecurityManager.getAdminPrincipal(name, realm) ;
        if(p == null){
            p = new PrincipalImpl(name);
        }
        return p;