public class FederationAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
ExceptionTranslationFilter to commence authentication via the
WS-Federation protocol.
The user's browser will be redirected to the IDP.
| Modifier and Type | Field and Description |
|---|---|
static String |
SAVED_CONTEXT
The key used to save the context of the request
|
| Constructor and Description |
|---|
FederationAuthenticationEntryPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
commence(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authenticationException) |
FederationConfig |
getFederationConfig() |
protected void |
preCommence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Template method for you to do your own pre-processing before the redirect occurs.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setFederationConfig(FederationConfig federationConfig) |
public static final String SAVED_CONTEXT
public FederationConfig getFederationConfig()
public void setFederationConfig(FederationConfig federationConfig)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic final void commence(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authenticationException)
throws IOException,
javax.servlet.ServletException
commence in interface org.springframework.security.web.AuthenticationEntryPointIOExceptionjavax.servlet.ServletExceptionprotected void preCommence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - the HttpServletRequestresponse - the HttpServletResponsepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionApache Fediz