|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.captcha.CaptchaChannelProcessorTemplate
public abstract class CaptchaChannelProcessorTemplate
CaptchaChannel template : Ensures the user has enough human privileges by
review of the CaptchaSecurityContext and using an abstract routine
isContextValidConcerningHumanity(CaptchaSecurityContext)
(implemented by sub classes)
The component uses 2 main parameters for its configuration :
ChannelProcessingFilter configurationisContextValidConcerningHumanity(CaptchaSecurityContext) to evaluate
whether the CaptchaSecurityContext is valid default value = 0
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
CaptchaChannelProcessorTemplate()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Verify if entryPoint and keyword are ok |
void |
decide(FilterInvocation invocation,
ConfigAttributeDefinition config)
Decided whether the presented FilterInvocation provides the
appropriate level of channel security based on the requested ConfigAttributeDefinition. |
ChannelEntryPoint |
getEntryPoint()
|
String |
getKeyword()
|
int |
getThresold()
|
void |
setEntryPoint(ChannelEntryPoint entryPoint)
|
void |
setKeyword(String keyword)
|
void |
setThresold(int thresold)
|
boolean |
supports(ConfigAttribute attribute)
Indicates whether this ChannelProcessor is able to process
the passed ConfigAttribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public CaptchaChannelProcessorTemplate()
| Method Detail |
|---|
public void setEntryPoint(ChannelEntryPoint entryPoint)
public ChannelEntryPoint getEntryPoint()
public void setKeyword(String keyword)
public String getKeyword()
public void setThresold(int thresold)
public int getThresold()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException - if not
public void decide(FilterInvocation invocation,
ConfigAttributeDefinition config)
throws IOException,
javax.servlet.ServletException
ChannelProcessorFilterInvocation provides the
appropriate level of channel security based on the requested ConfigAttributeDefinition.
decide in interface ChannelProcessorIOException
javax.servlet.ServletExceptionpublic boolean supports(ConfigAttribute attribute)
ChannelProcessorChannelProcessor is able to process
the passed ConfigAttribute.
This allows the ChannelProcessingFilter to check every
configuration attribute can be consumed by the configured
ChannelDecisionManager.
supports in interface ChannelProcessorattribute - a configuration attribute that has been configured
against the ChannelProcessingFilter
ChannelProcessor can support the
passed configuration attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||