Search in sources :

Example 1 with STSClientConfiguration

use of ddf.security.sts.client.configuration.STSClientConfiguration in project ddf by codice.

the class CasHandlerTest method createHandler.

private CasHandler createHandler() {
    CasHandler handler = new CasHandler();
    STSClientConfiguration clientConfiguration = mock(STSClientConfiguration.class);
    when(clientConfiguration.getAddress()).thenReturn(STS_ADDRESS);
    handler.setClientConfiguration(clientConfiguration);
    Filter testFilter = mock(Filter.class);
    handler.setProxyFilter(new ProxyFilter(Arrays.asList(testFilter)));
    return handler;
}
Also used : STSClientConfiguration(ddf.security.sts.client.configuration.STSClientConfiguration) ProxyFilter(org.codice.ddf.security.handler.cas.filter.ProxyFilter) AbstractCasFilter(org.jasig.cas.client.util.AbstractCasFilter) Filter(javax.servlet.Filter) ProxyFilter(org.codice.ddf.security.handler.cas.filter.ProxyFilter)

Aggregations

STSClientConfiguration (ddf.security.sts.client.configuration.STSClientConfiguration)1 Filter (javax.servlet.Filter)1 ProxyFilter (org.codice.ddf.security.handler.cas.filter.ProxyFilter)1 AbstractCasFilter (org.jasig.cas.client.util.AbstractCasFilter)1