public class AuthorizationFailureEvent extends AbstractAuthorizationEvent
This event might be thrown as a result of either an
AccessDecisionManager or an
AfterInvocationManager.
source| Constructor and Description |
|---|
AuthorizationFailureEvent(Object secureObject,
Collection<ConfigAttribute> attributes,
Authentication authentication,
AccessDeniedException accessDeniedException)
Construct the event.
|
| Modifier and Type | Method and Description |
|---|---|
AccessDeniedException |
getAccessDeniedException() |
Authentication |
getAuthentication() |
Collection<ConfigAttribute> |
getConfigAttributes() |
getTimestampgetSource, toStringpublic AuthorizationFailureEvent(Object secureObject, 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
AccessDecisionManagerIllegalArgumentException - if any null arguments are presented.public AccessDeniedException getAccessDeniedException()
public Authentication getAuthentication()
public Collection<ConfigAttribute> getConfigAttributes()