BasicRealm br = Security.getRealm();
if ( br instanceof ListableRealm )
{
Enumeration enum = ((ListableRealm)br).getUsers();
// etc...
}
else
{
// cant list users
}
Weblogic classes above are in weblogic.security.acl.* package. See
http://e-docs.bea.com/wls/docs61/javadocs/index.html Be careful - if you get hundreds of users in your system, you will kill your combo box. In that case you might want to add some wildcard search capability or get users in a group, etc.
Also be aware that security has changed in WLS 7.0 - the old Realms are deprecated and a new, better implementation (based on JAAS) has replaced it.