public class AccessDeniedException2
extends org.acegisecurity.AccessDeniedException
AccessDeniedException with more information.| Modifier and Type | Field and Description |
|---|---|
org.acegisecurity.Authentication |
authentication
This object represents the user being authenticated.
|
Permission |
permission
This object represents the permission that the user needed.
|
| Constructor and Description |
|---|
AccessDeniedException2(org.acegisecurity.Authentication authentication,
Permission permission) |
AccessDeniedException2(Throwable t,
org.acegisecurity.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.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic final org.acegisecurity.Authentication authentication
public final Permission permission
public AccessDeniedException2(org.acegisecurity.Authentication authentication,
Permission permission)
public AccessDeniedException2(Throwable t, org.acegisecurity.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 © 2019. All rights reserved.