Search in sources :

Example 1 with DefaultMultifactorTriggerSelectionStrategy

use of org.apereo.cas.authentication.DefaultMultifactorTriggerSelectionStrategy in project cas by apereo.

the class AbstractServiceValidateControllerTests method onSetUp.

@Before
public void onSetUp() throws Exception {
    final StaticApplicationContext context = new StaticApplicationContext();
    context.refresh();
    this.serviceValidateController = new ServiceValidateController();
    this.serviceValidateController.setCentralAuthenticationService(getCentralAuthenticationService());
    this.serviceValidateController.setAuthenticationSystemSupport(getAuthenticationSystemSupport());
    final Cas20ProxyHandler proxyHandler = new Cas20ProxyHandler(new SimpleHttpClientFactoryBean().getObject(), new DefaultUniqueTicketIdGenerator());
    this.serviceValidateController.setProxyHandler(proxyHandler);
    this.serviceValidateController.setApplicationContext(context);
    this.serviceValidateController.setArgumentExtractor(getArgumentExtractor());
    this.serviceValidateController.setServicesManager(getServicesManager());
    this.serviceValidateController.setValidationSpecification(new Cas20WithoutProxyingValidationSpecification());
    this.serviceValidateController.setMultifactorTriggerSelectionStrategy(new DefaultMultifactorTriggerSelectionStrategy("", ""));
}
Also used : SimpleHttpClientFactoryBean(org.apereo.cas.util.http.SimpleHttpClientFactoryBean) StaticApplicationContext(org.springframework.context.support.StaticApplicationContext) Cas20ProxyHandler(org.apereo.cas.ticket.proxy.support.Cas20ProxyHandler) Cas20WithoutProxyingValidationSpecification(org.apereo.cas.validation.Cas20WithoutProxyingValidationSpecification) DefaultMultifactorTriggerSelectionStrategy(org.apereo.cas.authentication.DefaultMultifactorTriggerSelectionStrategy) DefaultUniqueTicketIdGenerator(org.apereo.cas.util.DefaultUniqueTicketIdGenerator) Before(org.junit.Before)

Aggregations

DefaultMultifactorTriggerSelectionStrategy (org.apereo.cas.authentication.DefaultMultifactorTriggerSelectionStrategy)1 Cas20ProxyHandler (org.apereo.cas.ticket.proxy.support.Cas20ProxyHandler)1 DefaultUniqueTicketIdGenerator (org.apereo.cas.util.DefaultUniqueTicketIdGenerator)1 SimpleHttpClientFactoryBean (org.apereo.cas.util.http.SimpleHttpClientFactoryBean)1 Cas20WithoutProxyingValidationSpecification (org.apereo.cas.validation.Cas20WithoutProxyingValidationSpecification)1 Before (org.junit.Before)1 StaticApplicationContext (org.springframework.context.support.StaticApplicationContext)1