Package org.jasig.cas.authentication.DirectMappingAuthenticationManagerImpl

Examples of org.jasig.cas.authentication.DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder


        this.ticketRegistry = new DefaultTicketRegistry();
        this.authenticationManager = new DirectMappingAuthenticationManagerImpl();
       
        final Map<Class<? extends Credentials>, DirectAuthenticationHandlerMappingHolder> credentialsMapping = new HashMap<Class<? extends Credentials>, DirectAuthenticationHandlerMappingHolder>();
       
        final DirectAuthenticationHandlerMappingHolder holder = new DirectAuthenticationHandlerMappingHolder();
        final OpenIdCredentialsAuthenticationHandler handler = new OpenIdCredentialsAuthenticationHandler();
        handler.setTicketRegistry(this.ticketRegistry);
        holder.setAuthenticationHandler(handler);
        holder.setCredentialsToPrincipalResolver(new OpenIdCredentialsToPrincipalResolver());
       
        this.authenticationManager.setCredentialsMapping(credentialsMapping);
        credentialsMapping.put(OpenIdCredentials.class, holder);
       
        final Map<String, UniqueTicketIdGenerator> generator = new HashMap<String, UniqueTicketIdGenerator>();
View Full Code Here


        final List<AuthenticationMetaDataPopulator> populators = new ArrayList<AuthenticationMetaDataPopulator>();
        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);
        super.setUp();
View Full Code Here

TOP

Related Classes of org.jasig.cas.authentication.DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder

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.