Package org.geoserver.security.password

Examples of org.geoserver.security.password.GeoServerPlainTextPasswordEncoder


        GeoServerSecurityManager secMgr = createNiceMock(GeoServerSecurityManager.class);
        expect(secMgr.listUserGroupServices()).andReturn(
            new TreeSet<String>(Arrays.asList("default", "jdbc"))).anyTimes();
       
        GeoServerPlainTextPasswordEncoder pwEncoder = getPlainTextPasswordEncoder();
        expect(secMgr.loadPasswordEncoder(pwEncoder.getName())).andReturn(pwEncoder).anyTimes();
        expect(secMgr.listPasswordValidators()).andReturn(
            new TreeSet<String>(Arrays.asList(PasswordValidator.DEFAULT_NAME))).anyTimes();
        replay(secMgr);

        validator = new JdbcSecurityConfigValidator(secMgr);
View Full Code Here


    }
   
    protected GeoServerPlainTextPasswordEncoder createPlainTextPasswordEncoder(
        GeoServerSecurityManager secMgr) throws IOException {
   
        GeoServerPlainTextPasswordEncoder plainPwe = new GeoServerPlainTextPasswordEncoder();
        plainPwe.setBeanName("plainTextPasswordEncoder");
        plainPwe.setPrefix("plain");
        plainPwe.initialize(secMgr);
        return plainPwe;
    }
View Full Code Here

TOP

Related Classes of org.geoserver.security.password.GeoServerPlainTextPasswordEncoder

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.