Almost forgot this piece of the jaas tests

This commit is contained in:
Ray Krueger 2004-07-29 16:56:26 +00:00
parent 3b284231da
commit e366c65d17
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package net.sf.acegisecurity.providers.jaas;
import net.sf.acegisecurity.providers.jaas.event.JaasAuthenticationFailedEvent;
import net.sf.acegisecurity.providers.jaas.event.JaasAuthenticationSuccessEvent;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
/**
* @author Ray Krueger
* @version $Id$
*/
public class JaasEventCheck implements ApplicationListener {
JaasAuthenticationFailedEvent failedEvent;
JaasAuthenticationSuccessEvent successEvent;
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof JaasAuthenticationFailedEvent)
failedEvent = (JaasAuthenticationFailedEvent) event;
if (event instanceof JaasAuthenticationSuccessEvent)
successEvent = (JaasAuthenticationSuccessEvent) event;
}
}