dev@glassfish.java.net

Re: [v3] list of predefined security auth realm

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Thu, 24 Jul 2008 23:46:16 -0700

+1

in fact, +10.

You can find the names of each service without instantiating them if
you need that. You can also get their classes without instantiating
them and finally you can use injection of lookup to get instances, but
you already know that. Look at the Habitat API, it's all there.

jerome

On Jul 24, 2008, at 11:09 PM, Sahoo wrote:

> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>