public class RequestAttributePreAuthenticationProcessingFilter
extends org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
RequestAttributePreAuthenticationProcessingFilter class. This filter should be used PRE_AUTH_FILTER position in the filter chain.
http://static.springsource.org/spring-security/site/docs/3.1.x/reference/springsecurity-single.html
Constructor and Description |
---|
RequestAttributePreAuthenticationProcessingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected Object |
getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request) |
protected Object |
getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request) |
void |
setCredentialsRequestHeader(String credentialsRequestAttribute)
The
attribute to extract the user's credentials from. |
void |
setEnabled(boolean enabled)
Whether or not to enable this pre-auth filter.
|
void |
setFailOnError(boolean failOnError)
Whether to fail if the user is not found, or to fall through to other authentication mechanisms.
|
void |
setPrincipalRequestHeader(String principleRequestAttribute)
The
attribute to extract the authenticated user from. |
doFilter, getAuthenticationDetailsSource, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationManager, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, successfulAuthentication, unsuccessfulAuthentication
public RequestAttributePreAuthenticationProcessingFilter()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
protected Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)
getPreAuthenticatedPrincipal
in class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
protected Object getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)
getPreAuthenticatedCredentials
in class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
public void setEnabled(boolean enabled)
public void setPrincipalRequestHeader(String principleRequestAttribute)
attribute
to extract the authenticated user from.public void setCredentialsRequestHeader(String credentialsRequestAttribute)
attribute
to extract the user's credentials from.public void setFailOnError(boolean failOnError)
Copyright © 2020. All rights reserved.