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 SummaryConstructorsConstructorDescriptionAuthorizationDeniedException(String msg, AuthorizationResult authorizationResult) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
AuthorizationDeniedException
- 
AuthorizationDeniedException
 
- 
- 
Method Details- 
getAuthorizationResult
- 
isGrantedpublic boolean isGranted()- Specified by:
- isGrantedin interface- AuthorizationResult
- Returns:
- whether the access has been granted
 
 
-