|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.securechannel.SecureChannelProcessor
public class SecureChannelProcessor
Ensures channel security is active by review of
HttpServletRequest.isSecure() responses.
The class responds to one case-sensitive keyword, getSecureKeyword().
If this keyword is detected, HttpServletRequest.isSecure() is
used to determine the channel security offered. If channel security is not
present, the configured ChannelEntryPoint is called. By
default the entry point is RetryWithHttpsEntryPoint.
The default secureKeyword is
REQUIRES_SECURE_CHANNEL.
| Constructor Summary | |
|---|---|
SecureChannelProcessor()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
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 |
getSecureKeyword()
|
void |
setEntryPoint(ChannelEntryPoint entryPoint)
|
void |
setSecureKeyword(String secureKeyword)
|
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 |
| Constructor Detail |
|---|
public SecureChannelProcessor()
| Method Detail |
|---|
public void setEntryPoint(ChannelEntryPoint entryPoint)
public ChannelEntryPoint getEntryPoint()
public void setSecureKeyword(String secureKeyword)
public String getSecureKeyword()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
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 | |||||||||