public class SAMLProcessingFilter
extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
Modifier and Type | Field and Description |
---|---|
protected SAMLContextProvider |
contextProvider |
static String |
FILTER_URL
URL for Web SSO profile responses or unsolicited requests
|
protected static org.slf4j.Logger |
log |
protected SAMLProcessor |
processor |
protected org.opensaml.common.binding.decoding.URIComparator |
uriComparator |
Modifier | Constructor and Description |
---|---|
|
SAMLProcessingFilter() |
protected |
SAMLProcessingFilter(String defaultFilterProcessesUrl) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Verifies that required entities were autowired or set.
|
org.springframework.security.core.Authentication |
attemptAuthentication(HttpServletRequest request,
HttpServletResponse response)
In case the login attribute is not present it is presumed that the call is made from the remote IDP
and contains a SAML assertion which is processed and authenticated.
|
String |
getFilterProcessesUrl()
Gets the URL used to determine if this Filter is invoked
|
protected String |
getProfileName()
Name of the profile this used for authentication.
|
protected boolean |
requiresAuthentication(HttpServletRequest request,
HttpServletResponse response) |
void |
setContextProvider(SAMLContextProvider contextProvider)
Sets entity responsible for populating local entity context data.
|
void |
setDefaultTargetUrl(String url)
Deprecated.
|
void |
setFilterProcessesUrl(String filterProcessesUrl)
Sets the URL used to determine if this Filter is invoked
|
void |
setSAMLProcessor(SAMLProcessor processor)
Object capable of parse SAML messages from requests, must be set.
|
void |
setUriComparator(org.opensaml.common.binding.decoding.URIComparator uriComparator)
Sets URI comparator used to get local entity endpoint
|
doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthentication
protected static final org.slf4j.Logger log
protected SAMLProcessor processor
protected SAMLContextProvider contextProvider
protected org.opensaml.common.binding.decoding.URIComparator uriComparator
public static final String FILTER_URL
public SAMLProcessingFilter()
protected SAMLProcessingFilter(String defaultFilterProcessesUrl)
public org.springframework.security.core.Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws org.springframework.security.core.AuthenticationException
attemptAuthentication
in class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
request
- requestorg.springframework.security.core.AuthenticationException
- authentication failureprotected String getProfileName()
protected boolean requiresAuthentication(HttpServletRequest request, HttpServletResponse response)
requiresAuthentication
in class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
@Deprecated public void setDefaultTargetUrl(String url)
Creates a new successHandler and sets default URL for redirect after login. In case user requests a specific page which caused the login process initialization the original page will be reused. Any existing handler will be overwritten.
url
- url to use as a default success redirectSAMLRelayStateSuccessHandler
,
SavedRequestAwareAuthenticationSuccessHandler
@Autowired public void setSAMLProcessor(SAMLProcessor processor)
processor
- processor@Autowired public void setContextProvider(SAMLContextProvider contextProvider)
contextProvider
- provider implementation@Autowired(required=false) public void setUriComparator(org.opensaml.common.binding.decoding.URIComparator uriComparator)
uriComparator
- URI comparatorSAMLUtil.getEndpoint(List, String, InTransport, URIComparator)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
public void setFilterProcessesUrl(String filterProcessesUrl)
setFilterProcessesUrl
in class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
filterProcessesUrl
- the URL used to determine if this Filter is invokedpublic String getFilterProcessesUrl()