org.springframework.richclient.security
Class AuthenticationFailedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.richclient.security.ClientSecurityEvent
              extended by org.springframework.richclient.security.AuthenticationFailedEvent
All Implemented Interfaces:
Serializable

public class AuthenticationFailedEvent
extends ClientSecurityEvent

Event fired when an authentication attempt fails.

The source of this event is the Authentication token that resulted in the authentication failure. This event also carries the exception that indicated the failure, getCause().

Author:
Larry Streepy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.richclient.security.ClientSecurityEvent
NO_AUTHENTICATION
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AuthenticationFailedEvent(org.acegisecurity.Authentication authentication, org.acegisecurity.AcegiSecurityException cause)
          Constructor.
 
Method Summary
 org.acegisecurity.AcegiSecurityException getCause()
          Get the exception that caused the login failure
 void setCause(org.acegisecurity.AcegiSecurityException cause)
          Set the exception that caused this login failure.
 
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

AuthenticationFailedEvent

public AuthenticationFailedEvent(org.acegisecurity.Authentication authentication,
                                 org.acegisecurity.AcegiSecurityException cause)
Constructor. Use the given authentication token as the source of the event.

Parameters:
authentication - token
cause - The exception that caused the login failure
Method Detail

getCause

public org.acegisecurity.AcegiSecurityException getCause()
Get the exception that caused the login failure

Returns:
causing exception

setCause

public void setCause(org.acegisecurity.AcegiSecurityException cause)
Set the exception that caused this login failure.

Parameters:
cause -


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.