|
||||||||||
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()
|
java.lang.String |
getKeyword()
|
int |
getThresold()
|
void |
setEntryPoint(ChannelEntryPoint entryPoint)
|
void |
setKeyword(java.lang.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 afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
- if notpublic void decide(FilterInvocation invocation, ConfigAttributeDefinition config) throws java.io.IOException, javax.servlet.ServletException
ChannelProcessor
FilterInvocation
provides the appropriate level of channel
security based on the requested ConfigAttributeDefinition
.
decide
in interface ChannelProcessor
invocation
- DOCUMENT ME!config
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!
javax.servlet.ServletException
- DOCUMENT ME!public ChannelEntryPoint getEntryPoint()
public java.lang.String getKeyword()
public int getThresold()
public void setEntryPoint(ChannelEntryPoint entryPoint)
public void setKeyword(java.lang.String keyword)
public void setThresold(int thresold)
public boolean supports(ConfigAttribute attribute)
ChannelProcessor
ChannelProcessor
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 ChannelProcessor
attribute
- 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 |