Package hudson.security
Class AccessDeniedException2
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.core.NestedRuntimeException
-
- org.acegisecurity.AcegiSecurityException
-
- org.acegisecurity.AccessDeniedException
-
- hudson.security.AccessDeniedException2
-
- All Implemented Interfaces:
Serializable
@Deprecated public class AccessDeniedException2 extends AccessDeniedException
Deprecated.AccessDeniedException
with more information.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Authentication
authentication
Deprecated.This object represents the user being authenticated.Permission
permission
Deprecated.This object represents the permission that the user needed.
-
Constructor Summary
Constructors Constructor Description AccessDeniedException2(Throwable t, Authentication authentication, Permission permission)
Deprecated.AccessDeniedException2(Authentication authentication, Permission permission)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
authentication
public final Authentication authentication
Deprecated.This object represents the user being authenticated.
-
permission
public final Permission permission
Deprecated.This object represents the permission that the user needed.
-
-
Constructor Detail
-
AccessDeniedException2
public AccessDeniedException2(Authentication authentication, Permission permission)
Deprecated.
-
AccessDeniedException2
public AccessDeniedException2(Throwable t, Authentication authentication, Permission permission)
Deprecated.
-
-
Method Detail
-
reportAsHeaders
public void reportAsHeaders(javax.servlet.http.HttpServletResponse rsp)
Deprecated.Reports the details of the access failure in HTTP headers to assist diagnosis.
-
report
public void report(PrintWriter w)
Deprecated.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.
-
toSpring
public AccessDeniedException3 toSpring()
Deprecated.- Overrides:
toSpring
in classAccessDeniedException
-
-