Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.securechannel
Interface ChannelProcessor  view ChannelProcessor download ChannelProcessor.java

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,v 1.2 2005/11/17 00:55:50 benalex Exp $

Method Summary
 void decide(org.acegisecurity.intercept.web.FilterInvocation invocation, ConfigAttributeDefinition config)
          Decided whether the presented org.acegisecurity.intercept.web.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

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


supports

public 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.