org.springframework.richclient.security
Class AuthenticationFailedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.richclient.security.ClientSecurityEvent
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
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. |
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
- tokencause
- The exception that caused the login failure
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.