org.springframework.security.securechannel
Interface ChannelProcessor

All Known Implementing Classes:
InsecureChannelProcessor, SecureChannelProcessor

public interface ChannelProcessor

Decides whether a web channel meets a specific security condition.

ChannelProcessor implementations are iterated by the ChannelDecisionManagerImpl.

If an implementation has an issue with the channel security, they should take action themselves. The callers of the implementation do not take any action.

Version:
$Id: ChannelProcessor.java 2217 2007-10-27 00:45:30Z luke_t $
Author:
Ben Alex

Method Summary
 void decide(FilterInvocation invocation, ConfigAttributeDefinition config)
          Decided whether the presented FilterInvocation provides the appropriate level of channel security based on the requested ConfigAttributeDefinition.
 boolean supports(ConfigAttribute attribute)
          Indicates whether this ChannelProcessor is able to process the passed ConfigAttribute.
 

Method Detail

decide

void decide(FilterInvocation invocation,
            ConfigAttributeDefinition config)
            throws java.io.IOException,
                   javax.servlet.ServletException
Decided whether the presented FilterInvocation provides the appropriate level of channel security based on the requested ConfigAttributeDefinition.

Parameters:
invocation - DOCUMENT ME!
config - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
javax.servlet.ServletException - DOCUMENT ME!

supports

boolean supports(ConfigAttribute attribute)
Indicates whether this ChannelProcessor is able to process the passed ConfigAttribute.

This allows the ChannelProcessingFilter to check every configuration attribute can be consumed by the configured ChannelDecisionManager.

Parameters:
attribute - a configuration attribute that has been configured against the ChannelProcessingFilter
Returns:
true if this ChannelProcessor can support the passed configuration attribute