public class DaoFilterSecurityInterceptor
extends org.springframework.security.access.intercept.AbstractSecurityInterceptor
implements javax.servlet.Filter
| 构造器和说明 |
|---|
DaoFilterSecurityInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Not used (we rely on IoC container lifecycle services instead)
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Method that is actually called by the filter chain.
|
Class<?> |
getSecureObjectClass() |
org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource |
getSecurityMetadataSource() |
void |
init(javax.servlet.FilterConfig arg0)
Not used (we rely on IoC container lifecycle services instead)
|
void |
invoke(org.springframework.security.web.FilterInvocation fi) |
boolean |
isObserveOncePerRequest()
Indicates whether once-per-request handling will be observed.
|
org.springframework.security.access.SecurityMetadataSource |
obtainSecurityMetadataSource() |
void |
setObserveOncePerRequest(boolean observeOncePerRequest) |
void |
setSecurityMetadataSource(org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource newSource) |
afterInvocation, afterPropertiesSet, beforeInvocation, finallyInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setPublishAuthorizationSuccess, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributespublic void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
init 在接口中 javax.servlet.Filterarg0 - ignoredjavax.servlet.ServletException - never thrownpublic void destroy()
destroy 在接口中 javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
invoke(FilterInvocation) method.doFilter 在接口中 javax.servlet.Filterrequest - the servlet requestresponse - the servlet responsechain - the filter chainIOException - if the filter chain failsjavax.servlet.ServletException - if the filter chain failspublic org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource getSecurityMetadataSource()
public org.springframework.security.access.SecurityMetadataSource obtainSecurityMetadataSource()
obtainSecurityMetadataSource 在类中 org.springframework.security.access.intercept.AbstractSecurityInterceptorpublic void setSecurityMetadataSource(org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource newSource)
public Class<?> getSecureObjectClass()
getSecureObjectClass 在类中 org.springframework.security.access.intercept.AbstractSecurityInterceptorpublic void invoke(org.springframework.security.web.FilterInvocation fi)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic boolean isObserveOncePerRequest()
true, meaning the FilterSecurityInterceptor will only
execute once-per-request. Sometimes users may wish it to execute more than once per
request, such as when JSP forwards are being used and filter security is desired on
each included fragment of the HTTP request.true (the default) if once-per-request is honoured, otherwise
false if FilterSecurityInterceptor will enforce
authorizations for each and every fragment of the HTTP request.public void setObserveOncePerRequest(boolean observeOncePerRequest)
Copyright © 2019 江苏南大先腾信息产业股份有限公司. All rights reserved.