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,
ConfigAttributeDefinition configAttribs,
Authentication authentication,
AccessDeniedException accessDeniedException)
Construct the event.
|
Modifier and Type | Method and Description |
---|---|
AccessDeniedException |
getAccessDeniedException() |
Authentication |
getAuthentication() |
ConfigAttributeDefinition |
getConfigAttributeDefinition() |
public AuthorizationFailureEvent(java.lang.Object secureObject, ConfigAttributeDefinition configAttribs, Authentication authentication, AccessDeniedException accessDeniedException)
secureObject
- the secure objectconfigAttribs
- that apply to the secure objectauthentication
- that was found in the SecurityContextHolder
accessDeniedException
- that was returned by the
AccessDecisionManager
java.lang.IllegalArgumentException
- if any null arguments are presented.public AccessDeniedException getAccessDeniedException()
public Authentication getAuthentication()
public ConfigAttributeDefinition getConfigAttributeDefinition()