/** * Returns the realm identified by the name which is passed * as a parameter. This function knows about all the realms * which exist; it is not possible to store (or create) one * which is not accessible through this routine. * * @param name identifies the realm * @return the requested realm * @exception NoSuchRealmException if the realm is invalid * @exception BadRealmException if realm data structures are bad */ public static synchronized Realm getInstance(String configName, String name) throws NoSuchRealmException { Realm retval = _getInstance(configName, name); if (retval == null) { throw new NoSuchRealmException( localStrings.getLocalString("realm.no_such_realm", name + " realm does not exist.", new Object[] { name })); } return retval; }
/** * Returns the realm identified by the name which is passed * as a parameter. This function knows about all the realms * which exist; it is not possible to store (or create) one * which is not accessible through this routine. * * @param name identifies the realm * @return the requested realm * @exception NoSuchRealmException if the realm is invalid * @exception BadRealmException if realm data structures are bad */ public static Realm getInstance(String name) throws NoSuchRealmException { Realm retval = _getInstance(name); if (retval == null) { throw new NoSuchRealmException( localStrings.getLocalString("realm.no_such_realm", name + " realm does not exist.", new Object[] { name })); } return retval; }
/** * Returns the realm identified by the name which is passed * as a parameter. This function knows about all the realms * which exist; it is not possible to store (or create) one * which is not accessible through this routine. * * @param name identifies the realm * @return the requested realm * @exception NoSuchRealmException if the realm is invalid * @exception BadRealmException if realm data structures are bad */ public static synchronized Realm getInstance(String name) throws NoSuchRealmException { Realm retval = _getInstance(name); if (retval == null) { throw new NoSuchRealmException( localStrings.getLocalString("realm.no_such_realm", name + " realm does not exist.", new Object[] { name })); } return retval; }
/** * Returns the realm identified by the name which is passed * as a parameter. This function knows about all the realms * which exist; it is not possible to store (or create) one * which is not accessible through this routine. * * @param name identifies the realm * @return the requested realm * @exception NoSuchRealmException if the realm is invalid * @exception BadRealmException if realm data structures are bad */ public static synchronized Realm getInstance(String name) throws NoSuchRealmException { Realm retval = _getInstance(name); if (retval == null) { throw new NoSuchRealmException( localStrings.getLocalString("realm.no_such_realm", name + " realm does not exist.", new Object[] { name })); } return retval; }
/** * Returns the realm identified by the name which is passed * as a parameter. This function knows about all the realms * which exist; it is not possible to store (or create) one * which is not accessible through this routine. * * @param name identifies the realm * @return the requested realm * @exception NoSuchRealmException if the realm is invalid * @exception BadRealmException if realm data structures are bad */ public static synchronized Realm getInstance(String configName, String name) throws NoSuchRealmException { Realm retval = _getInstance(configName, name); if (retval == null) { throw new NoSuchRealmException( localStrings.getLocalString("realm.no_such_realm", name + " realm does not exist.", new Object[] { name })); } return retval; }
if(_getInstance(realmName) != null) { throw new BadRealmException( localStrings.getLocalString("realm.already_exists",
if(_getInstance(realmName) != null) { throw new BadRealmException( localStrings.getLocalString("realm.already_exists",
if(_getInstance(realmName) != null) { throw new BadRealmException( localStrings.getLocalString("realm.already_exists",
/** * Instantiate a Realm with the given name and properties using the * Class name given. This method is used by iAS and not RI. * * @param name Name of the new realm. * @param className Java Class name of the realm to create. * @param props Properties containing values of the Property element * from server.xml * @returns Reference to the new Realm. The Realm class keeps an internal * list of all instantiated realms. * @throws BadRealmException If the requested realm cannot be instantiated. * */ public static synchronized Realm instantiate(String name, String className, Properties props) throws BadRealmException { //Register the realm provider registerRealmStatsProvier(); Realm realmClass = _getInstance(name); if(realmClass == null) { realmClass = doInstantiate(name, className, props); RealmsManager mgr = getRealmsManager(); mgr.putIntoLoadedRealms(name, realmClass); } return realmClass; }
/** * Instantiate a Realm with the given name and properties using the * Class name given. This method is used by iAS and not RI. * * @param name Name of the new realm. * @param className Java Class name of the realm to create. * @param props Properties containing values of the Property element * from server.xml * @param configName the config to which this realm belongs * @returns Reference to the new Realm. The Realm class keeps an internal * list of all instantiated realms. * @throws BadRealmException If the requested realm cannot be instantiated. * */ public static synchronized Realm instantiate(String name, String className, Properties props, String configName) throws BadRealmException { //Register the realm provider registerRealmStatsProvier(); Realm realmClass = _getInstance(configName, name); if(realmClass == null) { realmClass = doInstantiate(name, className, props); RealmsManager mgr = getRealmsManager(); mgr.putIntoLoadedRealms(configName, name, realmClass); } return realmClass; }
/** * Instantiate a Realm with the given name and properties using the * Class name given. This method is used by iAS and not RI. * * @param name Name of the new realm. * @param className Java Class name of the realm to create. * @param props Properties containing values of the Property element * from server.xml * @param configName the config to which this realm belongs * @returns Reference to the new Realm. The Realm class keeps an internal * list of all instantiated realms. * @throws BadRealmException If the requested realm cannot be instantiated. * */ public static synchronized Realm instantiate(String name, String className, Properties props, String configName) throws BadRealmException { //Register the realm provider registerRealmStatsProvier(); Realm realmClass = _getInstance(configName, name); if(realmClass == null) { realmClass = doInstantiate(name, className, props); RealmsManager mgr = getRealmsManager(); mgr.putIntoLoadedRealms(configName, name, realmClass); } return realmClass; }
/** * Instantiate a Realm with the given name and properties using the * Class name given. This method is used by iAS and not RI. * * @param name Name of the new realm. * @param className Java Class name of the realm to create. * @param props Properties containing values of the Property element * from server.xml * @returns Reference to the new Realm. The Realm class keeps an internal * list of all instantiated realms. * @throws BadRealmException If the requested realm cannot be instantiated. * */ public static synchronized Realm instantiate(String name, String className, Properties props) throws BadRealmException { //Register the realm provider registerRealmStatsProvier(); Realm realmClass = _getInstance(name); if(realmClass == null) { realmClass = doInstantiate(name, className, props); RealmsManager mgr = getRealmsManager(); mgr.putIntoLoadedRealms(name, realmClass); } return realmClass; }