|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.securechannel.InsecureChannelProcessor
public class InsecureChannelProcessor
Ensures channel security is inactive by review of HttpServletRequest.isSecure()
responses.
The class responds to one case-sensitive keyword, getInsecureKeyword()
. If this keyword is detected,
HttpServletRequest.isSecure()
is used to determine the channel security offered. If channel security
is present, the configured ChannelEntryPoint
is called. By default the entry point is RetryWithHttpEntryPoint
.
The default insecureKeyword
is REQUIRES_INSECURE_CHANNEL
.
Constructor Summary | |
---|---|
InsecureChannelProcessor()
|
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 |
getInsecureKeyword()
|
void |
setEntryPoint(ChannelEntryPoint entryPoint)
|
void |
setInsecureKeyword(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 InsecureChannelProcessor()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void decide(FilterInvocation invocation, ConfigAttributeDefinition config) throws IOException, 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!
IOException
- DOCUMENT ME!
ServletException
- DOCUMENT ME!public ChannelEntryPoint getEntryPoint()
public String getInsecureKeyword()
public void setEntryPoint(ChannelEntryPoint entryPoint)
public void setInsecureKeyword(String secureKeyword)
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
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |