public class AuthorizationFailureEvent extends AbstractAuthorizationEvent
This event might be thrown as a result of either an
AccessDecisionManager
or an AfterInvocationManager.
| Constructor and Description |
|---|
AuthorizationFailureEvent(java.lang.Object secureObject,
java.util.Collection<ConfigAttribute> attributes,
Authentication authentication,
AccessDeniedException accessDeniedException)
Construct the event.
|
| Modifier and Type | Method and Description |
|---|---|
AccessDeniedException |
getAccessDeniedException() |
Authentication |
getAuthentication() |
java.util.Collection<ConfigAttribute> |
getConfigAttributes() |
public AuthorizationFailureEvent(java.lang.Object secureObject,
java.util.Collection<ConfigAttribute> attributes,
Authentication authentication,
AccessDeniedException accessDeniedException)
secureObject - the secure objectattributes - that apply to the secure objectauthentication - that was found in the SecurityContextHolderaccessDeniedException - that was returned by the
AccessDecisionManagerjava.lang.IllegalArgumentException - if any null arguments are presented.public AccessDeniedException getAccessDeniedException()
public Authentication getAuthentication()
public java.util.Collection<ConfigAttribute> getConfigAttributes()