public class AccessDeniedException3
extends org.springframework.security.access.AccessDeniedException
AccessDeniedException
with more information.Modifier and Type | Field and Description |
---|---|
org.springframework.security.core.Authentication |
authentication
This object represents the user being authenticated.
|
Permission |
permission
This object represents the permission that the user needed.
|
Constructor and Description |
---|
AccessDeniedException3(org.springframework.security.core.Authentication authentication,
Permission permission) |
AccessDeniedException3(Throwable t,
org.springframework.security.core.Authentication authentication,
Permission permission) |
Modifier and Type | Method and Description |
---|---|
void |
report(PrintWriter w)
Reports the details of the access failure.
|
void |
reportAsHeaders(javax.servlet.http.HttpServletResponse rsp)
Reports the details of the access failure in HTTP headers to assist diagnosis.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final org.springframework.security.core.Authentication authentication
public final Permission permission
public AccessDeniedException3(org.springframework.security.core.Authentication authentication, Permission permission)
public AccessDeniedException3(Throwable t, org.springframework.security.core.Authentication authentication, Permission permission)
public void reportAsHeaders(javax.servlet.http.HttpServletResponse rsp)
public void report(PrintWriter w)
reportAsHeaders(HttpServletResponse)
for the intention
but instead of using HTTP headers, this version is meant to go inside the payload.Copyright © 2004–2021. All rights reserved.