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("", ""));
}
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));
}
Aggregations