public class RpcAccessDeniedHandler extends Object implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.security.web.access.AccessDeniedHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_LOGIN_REQUIRED |
static int |
CODE_NOT_PERMIT |
| Constructor and Description |
|---|
RpcAccessDeniedHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException)
Access denied handler when user does not login
|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException accessDeniedException)
Access denied handler when user has login
|
public static final int CODE_LOGIN_REQUIRED
public static final int CODE_NOT_PERMIT
public void commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException)
throws IOException
commence in interface org.springframework.security.web.AuthenticationEntryPointrequest - response - authException - IOExceptionpublic void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException accessDeniedException)
throws IOException,
javax.servlet.ServletException
handle in interface org.springframework.security.web.access.AccessDeniedHandlerrequest - response - accessDeniedException - IOExceptionjavax.servlet.ServletExceptionCopyright © 2020. All rights reserved.