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,
ConfigAttributeDefinition configAttribs,
Authentication authentication,
AccessDeniedException accessDeniedException)
Construct the event.
|
Modifier and Type | Method and Description |
---|---|
AccessDeniedException |
getAccessDeniedException() |
Authentication |
getAuthentication() |
ConfigAttributeDefinition |
getConfigAttributeDefinition() |
getSource, toString
public AuthorizationFailureEvent(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
IllegalArgumentException
- if any null arguments are presented.public AccessDeniedException getAccessDeniedException()
public Authentication getAuthentication()
public ConfigAttributeDefinition getConfigAttributeDefinition()
Copyright © 2018. All rights reserved.