Package org.apache.ftpserver.usermanager.impl

Examples of org.apache.ftpserver.usermanager.impl.DbUserManager


                + "<select-all-users>SELECT ALL USERS</select-all-users>"
                + "<is-admin>IS ADMIN</is-admin>"
                + "<authenticate>AUTHENTICATE</authenticate>"
                + "</db-user-manager>");

        DbUserManager um = (DbUserManager) server.getUserManager();
        assertTrue(um.getDataSource() instanceof jdbcDataSource);
        assertTrue(um.getPasswordEncryptor() instanceof SaltedPasswordEncryptor);

        assertEquals("INSERT USER", um.getSqlUserInsert());
        assertEquals("UPDATE USER", um.getSqlUserUpdate());
        assertEquals("DELETE USER", um.getSqlUserDelete());
        assertEquals("SELECT USER", um.getSqlUserSelect());
        assertEquals("SELECT ALL USERS", um.getSqlUserSelectAll());
        assertEquals("IS ADMIN", um.getSqlUserAdmin());
        assertEquals("AUTHENTICATE", um.getSqlUserAuthenticate());

    }
View Full Code Here


                + "<select-all-users>SELECT ALL USERS</select-all-users>"
                + "<is-admin>IS ADMIN</is-admin>"
                + "<authenticate>AUTHENTICATE</authenticate>"
                + "</db-user-manager>");

        DbUserManager um = (DbUserManager) server.getUserManager();
        assertTrue(um.getDataSource() instanceof jdbcDataSource);
        assertTrue(um.getPasswordEncryptor() instanceof SaltedPasswordEncryptor);

        assertEquals("INSERT USER", um.getSqlUserInsert());
        assertEquals("UPDATE USER", um.getSqlUserUpdate());
        assertEquals("DELETE USER", um.getSqlUserDelete());
        assertEquals("SELECT USER", um.getSqlUserSelect());
        assertEquals("SELECT ALL USERS", um.getSqlUserSelectAll());
        assertEquals("IS ADMIN", um.getSqlUserAdmin());
        assertEquals("AUTHENTICATE", um.getSqlUserAuthenticate());

    }
View Full Code Here

        if (authenticateStmt == null) {
            throw new FtpServerConfigurationException(
                    "Required authenticate user SQL statement not provided");
        }
       
        return new DbUserManager(dataSource, selectAllStmt, selectUserStmt,
                insertUserStmt, updateUserStmt, deleteUserStmt, authenticateStmt,
                isAdminStmt, passwordEncryptor, adminName);
    }
View Full Code Here

                + "<select-all-users>SELECT ALL USERS</select-all-users>"
                + "<is-admin>IS ADMIN</is-admin>"
                + "<authenticate>AUTHENTICATE</authenticate>"
                + "</db-user-manager>");

        DbUserManager um = (DbUserManager) server.getUserManager();
        assertTrue(um.getDataSource() instanceof jdbcDataSource);
        assertTrue(um.getPasswordEncryptor() instanceof SaltedPasswordEncryptor);

        assertEquals("INSERT USER", um.getSqlUserInsert());
        assertEquals("UPDATE USER", um.getSqlUserUpdate());
        assertEquals("DELETE USER", um.getSqlUserDelete());
        assertEquals("SELECT USER", um.getSqlUserSelect());
        assertEquals("SELECT ALL USERS", um.getSqlUserSelectAll());
        assertEquals("IS ADMIN", um.getSqlUserAdmin());
        assertEquals("AUTHENTICATE", um.getSqlUserAuthenticate());

    }
View Full Code Here

        if (authenticateStmt == null) {
            throw new FtpServerConfigurationException(
                    "Required authenticate user SQL statement not provided");
        }
       
        return new DbUserManager(dataSource, selectAllStmt, selectUserStmt,
                insertUserStmt, updateUserStmt, deleteUserStmt, authenticateStmt,
                isAdminStmt, passwordEncryptor, adminName);
    }
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.usermanager.impl.DbUserManager

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.