Examples of MBeanConfigException


Examples of com.sun.enterprise.admin.config.MBeanConfigException

        }
        catch (Exception e)
        {
            String msg = localStrings.getString("configsMBean.can_not_create_keyfile", new Object[]{path});
            _sLogger.log(Level.WARNING, msg);
            throw new MBeanConfigException(msg);
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

            securityService.getMessageSecurityConfigByAuthLayer(messageLayer);
        if(messageSecurity==null)
        {
            String msg = localStrings.getString( "admin.mbeans.configs.message_security_config_not_found",
                    new Object[]{messageLayer, targetName});
            throw new MBeanConfigException(msg);
        }
        ProviderConfig[] providers = messageSecurity.getProviderConfig();
        if(providers.length==1 && providerId.equals(providers[0].getProviderId()))
        {
            securityService.removeMessageSecurityConfig(messageSecurity);
            return true;
        }
        ProviderConfig provider = messageSecurity.getProviderConfigByProviderId(providerId);
        if(provider==null)
        {
            String msg = localStrings.getString( "admin.mbeans.configs.security_provider_not_found", new Object[]{providerId, messageLayer, targetName});
            throw new MBeanConfigException(msg);
        }
        messageSecurity.removeProviderConfig(provider);

        return true;
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

                   securityService.getMessageSecurityConfigByAuthLayer(messageLayer);
            if(messageSecurity==null)
            {
                String msg = localStrings.getString( "admin.mbeans.configs.message_security_config_not_found",
                        new Object[]{messageLayer, targetName});
                throw new MBeanConfigException(msg);
            }
            return getMessageSecurityProviders(messageSecurity);
        }
        //here we are for null-messageLayer only
        MessageSecurityConfig[] messageSecurities =
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

        {
            return new FileRealm( mFile );
        }
        catch(Exception e)
        {
            throw new MBeanConfigException( e.getMessage() );
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

        {
            return toStringArray(realm.getUserNames());
        }
        catch(BadRealmException bre)
        {
            throw new MBeanConfigException(bre.getMessage());
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

        {
            return toStringArray(realm.getGroupNames());
        }
        catch(BadRealmException bre)
        {
            throw new MBeanConfigException(bre.getMessage());
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

        {
            return toStringArray(realm.getGroupNames(userName));
        }
        catch(NoSuchUserException nse)
        {
            throw new MBeanConfigException(nse.getMessage());
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

            realm.addUser(userName, password, groupList);
            saveInstanceRealmKeyFile(realm);
        }
        catch(Exception e)
        {
            throw new MBeanConfigException( e.getMessage() );
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

            realm.removeUser(userName);
            saveInstanceRealmKeyFile(realm);
        }
        catch(NoSuchUserException nse)
        {
            throw new MBeanConfigException(nse.getMessage());
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.config.MBeanConfigException

            realm.updateUser(userName, userName, password, groupList);
            saveInstanceRealmKeyFile( realm );
        }
        catch( Exception e )
        {
            throw new MBeanConfigException( e .getMessage() );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.