Search in sources :

Example 1 with Cas20ProxyHandler

use of org.apereo.cas.ticket.proxy.support.Cas20ProxyHandler 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)

Example 2 with Cas20ProxyHandler

use of org.apereo.cas.ticket.proxy.support.Cas20ProxyHandler in project cas by apereo.

the class AbstractServiceValidateControllerTests method verifyAfterPropertesSetTestEverything.

@Test
public void verifyAfterPropertesSetTestEverything() throws Exception {
    this.serviceValidateController.setValidationSpecification(new Cas20ProtocolValidationSpecification());
    this.serviceValidateController.setProxyHandler(new Cas20ProxyHandler(null, null));
}
Also used : Cas20ProxyHandler(org.apereo.cas.ticket.proxy.support.Cas20ProxyHandler) Cas20ProtocolValidationSpecification(org.apereo.cas.validation.Cas20ProtocolValidationSpecification) Test(org.junit.Test)

Aggregations

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