dev@glassfish.java.net

Re: [v3] list of predefined security auth realm

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 25 Jul 2008 11:39:49 +0530

Instead of hardcoding the names, why don't we discover them using
Habitat API? Are these not implemented as Service?

Thanks,
Sahoo

Anissa Lam wrote:
> 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"};
> }
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>