dev@glassfish.java.net

[v3] list of predefined security auth realm

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Thu, 24 Jul 2008 21:40:09 -0700

Hi,
I am working on the GUI for creating security realm. In V2, i called
the following method getPredefinedAuthRealmClassNames() on
SecurityServiceMBean to get the list of predefined security auth realm.
Question 1: Is this list the same as in V3 Prelude ? If not, can
someone give me that list ?
Question 2: Should GUI just hard code the list or has 'ss implement
backend support' already ?

thanks
Anissa

 public class SecurityServiceMBean extends BaseConfigMBean
{
    /**
     * Returns names of predefined AuthRealms' classes supported by
security service.
     * @returns array of predefind AuthRealms' classes
     *
     */
    public String[] getPredefinedAuthRealmClassNames()
    {
        //!!!!!!!!!!!! (hardcoded for now until ss will implement
backemnd support)
        return new String[]{
                "com.sun.enterprise.security.auth.realm.file.FileRealm",
                
"com.sun.enterprise.security.auth.realm.certificate.CertificateRealm",
                "com.sun.enterprise.security.auth.realm.ldap.LDAPRealm",
                "com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm",
                
"com.sun.enterprise.security.auth.realm.solaris.SolarisRealm"};
    }
}