Package org.apache.qpid.server.security.auth.database

Examples of org.apache.qpid.server.security.auth.database.PrincipalDatabase


                throw new ConfigurationException("No principal-database specified for jmx security");
            }

            String databaseName = principalDBs.get(0);

            PrincipalDatabase database = getDatabases().get(databaseName);

            if (database == null)
            {
                throw new ConfigurationException("Principal-database '" + databaseName + "' not found");
            }
View Full Code Here


                _default = ApplicationRegistry.getInstance().getAuthenticationManager();
                return;
            }
            else
            {
                PrincipalDatabase database = ApplicationRegistry.getInstance().getDatabaseManager().getDatabases().get(databaseName);

                if (database == null)
                {
                    throw new ConfigurationException("Requested database:" + databaseName + " was not found");
                }
View Full Code Here

                _default = ApplicationRegistry.getInstance().getAuthenticationManager();
                return;
            }
            else
            {
                PrincipalDatabase database = ApplicationRegistry.getInstance().getDatabaseManager().getDatabases().get(databaseName);

                if (database == null)
                {
                    throw new ConfigurationException("Requested database:" + databaseName + " was not found");
                }
View Full Code Here

            if ((name == null) || (name.length() == 0))
            {
                throw new Exception("Principal database names must have length greater than or equal to one character");
            }

            PrincipalDatabase pd = databases.get(name);
            if (pd != null)
            {
                throw new Exception("Duplicate principal database name not provided");
            }
View Full Code Here

                throw new ConfigurationException("No principal-database specified for jmx security(" + baseSecurity + ".principal-database)");
            }

            String databaseName = principalDBs.get(0);

            PrincipalDatabase database = getDatabases().get(databaseName);

            if (database == null)
            {
                throw new ConfigurationException("Principal-database '" + databaseName + "' not found");
            }
View Full Code Here

    public void initialise(String baseConfigPath, Configuration configuration,
        Map<String, PrincipalDatabase> principalDatabases) throws Exception
    {
        String principalDatabaseName = configuration.getString(baseConfigPath + ".principal-database");
        PrincipalDatabase db = principalDatabases.get(principalDatabaseName);

        initialise(db);
    }
View Full Code Here

    public void perform(String user, char[] password) throws Exception
    {
        CRAMMD5HexInitialiser initialiser = new CRAMMD5HexInitialiser();

        PrincipalDatabase db = new Base64MD5PasswordFilePrincipalDatabase();
        db.open(_file);
        initialiser.initialise(db);

        PasswordCallback passwordCallback = new PasswordCallback("password:", false);
        NameCallback usernameCallback = new NameCallback("user:", user);
View Full Code Here

        {
            LOGGER.warn("Password file path must not be null");
            return null;
        }

        PrincipalDatabase principalDatabase = createPrincipalDatabase();
        return new PrincipalDatabaseAuthenticationManager(principalDatabase, passwordFile);
    }
View Full Code Here

                _default = ApplicationRegistry.getInstance().getAuthenticationManager();
                return;
            }
            else
            {
                PrincipalDatabase database = ApplicationRegistry.getInstance().getDatabaseManager().getDatabases().get(databaseName);

                if (database == null)
                {
                    throw new ConfigurationException("Requested database:" + databaseName + " was not found");
                }
View Full Code Here

            // For SASL using JMXMP
            _jmxURL = new JMXServiceURL("jmxmp", null, port);

            Map env = new HashMap();
            Map<String, PrincipalDatabase> map = appRegistry.getDatabaseManager().getDatabases();
            PrincipalDatabase db = null;

            for (Map.Entry<String, PrincipalDatabase> entry : map.entrySet())
            {
                if (entry.getValue() instanceof Base64MD5PasswordFilePrincipalDatabase)
                {
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.security.auth.database.PrincipalDatabase

Copyright © 2018 www.massapicom. 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.