Search in sources :

Example 1 with ChannelDecisionManagerImpl

use of org.springframework.security.web.access.channel.ChannelDecisionManagerImpl in project spring-security by spring-projects.

the class ChannelSecurityConfigurer method configure.

@Override
public void configure(H http) throws Exception {
    ChannelDecisionManagerImpl channelDecisionManager = new ChannelDecisionManagerImpl();
    channelDecisionManager.setChannelProcessors(getChannelProcessors(http));
    channelDecisionManager = postProcess(channelDecisionManager);
    channelFilter.setChannelDecisionManager(channelDecisionManager);
    DefaultFilterInvocationSecurityMetadataSource filterInvocationSecurityMetadataSource = new DefaultFilterInvocationSecurityMetadataSource(requestMap);
    channelFilter.setSecurityMetadataSource(filterInvocationSecurityMetadataSource);
    channelFilter = postProcess(channelFilter);
    http.addFilter(channelFilter);
}
Also used : ChannelDecisionManagerImpl(org.springframework.security.web.access.channel.ChannelDecisionManagerImpl) DefaultFilterInvocationSecurityMetadataSource(org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource)

Aggregations

ChannelDecisionManagerImpl (org.springframework.security.web.access.channel.ChannelDecisionManagerImpl)1 DefaultFilterInvocationSecurityMetadataSource (org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource)1