org.springframework.security.access.event
Class AuthorizationFailureEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.security.access.event.AbstractAuthorizationEvent
              extended by org.springframework.security.access.event.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 3927 2009-10-06 19:46:44Z ltaylor $
Author:
Ben Alex
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AuthorizationFailureEvent(Object secureObject, Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException)
          Construct the event.
 
Method Summary
 AccessDeniedException getAccessDeniedException()
           
 Authentication getAuthentication()
           
 Collection<ConfigAttribute> getConfigAttributes()
           
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorizationFailureEvent

public AuthorizationFailureEvent(Object secureObject,
                                 Collection<ConfigAttribute> attributes,
                                 Authentication authentication,
                                 AccessDeniedException accessDeniedException)
Construct the event.

Parameters:
secureObject - the secure object
attributes - that apply to the secure object
authentication - that was found in the SecurityContextHolder
accessDeniedException - that was returned by the AccessDecisionManager
Throws:
IllegalArgumentException - if any null arguments are presented.
Method Detail

getAccessDeniedException

public AccessDeniedException getAccessDeniedException()

getAuthentication

public Authentication getAuthentication()

getConfigAttributes

public Collection<ConfigAttribute> getConfigAttributes()


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.