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() |
getTimestamp
getSource, toString
public 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 SecurityContextHolder
accessDeniedException
- that was returned by the
AccessDecisionManager
IllegalArgumentException
- if any null arguments are presented.public AccessDeniedException getAccessDeniedException()
public Authentication getAuthentication()
public Collection<ConfigAttribute> getConfigAttributes()