Class AuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.security.authentication.AuthorizationException
- All Implemented Interfaces:
 Serializable
Exception thrown when access to a protected resource is denied.
- Since:
 - 1.4.0
 - Author:
 - James Kleeh
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
AuthorizationException
- Parameters:
 authentication- The authentication that was denied, null if unauthorized
 
 - 
 - 
Method Details
- 
isForbidden
public boolean isForbidden()- Returns:
 - True if the request was authenticated
 
 - 
getAuthentication
- Returns:
 - The authentication used in the request
 
 
 -