@Deprecated public class AccessDeniedException2 extends AccessDeniedException
AccessDeniedException
with more information.Modifier and Type | Field and Description |
---|---|
Authentication |
authentication
Deprecated.
This object represents the user being authenticated.
|
Permission |
permission
Deprecated.
This object represents the permission that the user needed.
|
Constructor and Description |
---|
AccessDeniedException2(Authentication authentication,
Permission permission)
Deprecated.
|
AccessDeniedException2(Throwable t,
Authentication authentication,
Permission permission)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
report(PrintWriter w)
Deprecated.
Reports the details of the access failure.
|
void |
reportAsHeaders(javax.servlet.http.HttpServletResponse rsp)
Deprecated.
Reports the details of the access failure in HTTP headers to assist diagnosis.
|
AccessDeniedException3 |
toSpring()
Deprecated.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final Authentication authentication
public final Permission permission
public AccessDeniedException2(Authentication authentication, Permission permission)
public AccessDeniedException2(Throwable t, 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.public AccessDeniedException3 toSpring()
toSpring
in class AccessDeniedException
Copyright © 2004–2021. All rights reserved.