Class OpenNMSAuthFailureHandler
- java.lang.Object
-
- org.opennms.web.springframework.security.OpenNMSAuthFailureHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class OpenNMSAuthFailureHandler extends Object implements org.springframework.security.web.authentication.AuthenticationFailureHandler
-
-
Constructor Summary
Constructors Constructor Description OpenNMSAuthFailureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.web.RedirectStrategygetRedirectStrategy()protected booleanisAllowSessionCreation()protected booleanisUseForward()voidonAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)protected voidsaveException(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.AuthenticationException exception)voidsetAllowSessionCreation(boolean allowSessionCreation)voidsetDefaultFailureUrl(String defaultFailureUrl)voidsetRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)voidsetUseForward(boolean forwardToDestination)
-
-
-
Method Detail
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, javax.servlet.ServletException- Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Throws:
IOExceptionjavax.servlet.ServletException
-
saveException
protected final void saveException(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.AuthenticationException exception)
-
setDefaultFailureUrl
public void setDefaultFailureUrl(String defaultFailureUrl)
-
isUseForward
protected boolean isUseForward()
-
setUseForward
public void setUseForward(boolean forwardToDestination)
-
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
-
getRedirectStrategy
protected org.springframework.security.web.RedirectStrategy getRedirectStrategy()
-
isAllowSessionCreation
protected boolean isAllowSessionCreation()
-
setAllowSessionCreation
public void setAllowSessionCreation(boolean allowSessionCreation)
-
-