Package hudson.security
Class AccessDeniedException3
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.access.AccessDeniedException
hudson.security.AccessDeniedException3
- All Implemented Interfaces:
Serializable
public class AccessDeniedException3
extends org.springframework.security.access.AccessDeniedException
AccessDeniedException
with more information.- Since:
- 2.266
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal org.springframework.security.core.Authentication
This object represents the user being authenticated.final Permission
This object represents the permission that the user needed. -
Constructor Summary
ConstructorDescriptionAccessDeniedException3
(Throwable t, org.springframework.security.core.Authentication authentication, Permission permission) AccessDeniedException3
(org.springframework.security.core.Authentication authentication, Permission permission) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Reports the details of the access failure.void
reportAsHeaders
(jakarta.servlet.http.HttpServletResponse rsp) Reports the details of the access failure in HTTP headers to assist diagnosis.void
reportAsHeaders
(javax.servlet.http.HttpServletResponse rsp) Deprecated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
authentication
public final org.springframework.security.core.Authentication authenticationThis object represents the user being authenticated. -
permission
This object represents the permission that the user needed.
-
-
Constructor Details
-
AccessDeniedException3
public AccessDeniedException3(org.springframework.security.core.Authentication authentication, Permission permission) -
AccessDeniedException3
public AccessDeniedException3(Throwable t, org.springframework.security.core.Authentication authentication, Permission permission)
-
-
Method Details
-
reportAsHeaders
public void reportAsHeaders(jakarta.servlet.http.HttpServletResponse rsp) Reports the details of the access failure in HTTP headers to assist diagnosis. -
reportAsHeaders
Deprecated. -
report
Reports the details of the access failure. This method is similar toreportAsHeaders(HttpServletResponse)
for the intention but instead of using HTTP headers, this version is meant to go inside the payload.
-
reportAsHeaders(HttpServletResponse)