Class AuthorizationDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.access.AccessDeniedException
org.springframework.security.authorization.AuthorizationDeniedException
- All Implemented Interfaces:
Serializable
,AuthorizationResult
public class AuthorizationDeniedException
extends AccessDeniedException
implements AuthorizationResult
An
AccessDeniedException
that contains the AuthorizationResult
- Since:
- 6.3
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthorizationDeniedException
(String msg, AuthorizationResult authorizationResult) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthorizationDeniedException
-
AuthorizationDeniedException
-
-
Method Details
-
getAuthorizationResult
-
isGranted
public boolean isGranted()- Specified by:
isGranted
in interfaceAuthorizationResult
- Returns:
- whether the access has been granted
-