Package org.jasig.cas.authentication.handler.support

Examples of org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler


public final class SimpleTestUsernamePasswordHandlerTests extends TestCase {

    private SimpleTestUsernamePasswordAuthenticationHandler authenticationHandler;

    protected void setUp() throws Exception {
        this.authenticationHandler = new SimpleTestUsernamePasswordAuthenticationHandler();
        this.authenticationHandler
            .setPasswordEncoder(new PlainTextPasswordEncoder());
    }
View Full Code Here


        populators.add(new SamlAuthenticationMetaDataPopulator());
       
        this.manager.setAuthenticationMetaDataPopulators(populators);
       
        final DirectAuthenticationHandlerMappingHolder d = new DirectAuthenticationHandlerMappingHolder();
        d.setAuthenticationHandler(new SimpleTestUsernamePasswordAuthenticationHandler());
        d.setCredentialsToPrincipalResolver(new UsernamePasswordCredentialsToPrincipalResolver());
       
        mappings.put(UsernamePasswordCredentials.class, d);
       
        this.manager.setCredentialsMapping(mappings);
View Full Code Here

TOP

Related Classes of org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler

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.