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.RedirectStrategy
getRedirectStrategy()
protected boolean
isAllowSessionCreation()
protected boolean
isUseForward()
void
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
protected void
saveException(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.AuthenticationException exception)
void
setAllowSessionCreation(boolean allowSessionCreation)
void
setDefaultFailureUrl(String defaultFailureUrl)
void
setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
void
setUseForward(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:
onAuthenticationFailure
in interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler
- Throws:
IOException
javax.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)
-
-