org.acegisecurity.event.authorization
Class AuthorizationFailureEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.acegisecurity.event.authorization.AbstractAuthorizationEvent
org.acegisecurity.event.authorization.AuthorizationFailureEvent
- All Implemented Interfaces:
- Serializable
public class AuthorizationFailureEvent
- extends AbstractAuthorizationEvent
Indicates a secure object invocation failed because the principal could not
be authorized for the request.
This event might be thrown as a result of either an
AccessDecisionManager
or an
AfterInvocationManager
.
- Version:
- $Id: AuthorizationFailureEvent.java 1784 2007-02-24 21:00:24Z luke_t $
- Author:
- Ben Alex
- See Also:
- Serialized Form
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
AuthorizationFailureEvent
public AuthorizationFailureEvent(Object secureObject,
ConfigAttributeDefinition configAttribs,
Authentication authentication,
AccessDeniedException accessDeniedException)
- Construct the event.
- Parameters:
secureObject
- the secure objectconfigAttribs
- that apply to the secure objectauthentication
- that was found in the SecurityContextHolder
accessDeniedException
- that was returned by the
AccessDecisionManager
- Throws:
IllegalArgumentException
- if any null arguments are presented.
getAccessDeniedException
public AccessDeniedException getAccessDeniedException()
getAuthentication
public Authentication getAuthentication()
getConfigAttributeDefinition
public ConfigAttributeDefinition getConfigAttributeDefinition()
Copyright © 2004-2010 Interface21, Inc. All Rights Reserved.