Almost forgot this piece of the jaas tests
This commit is contained in:
parent
3b284231da
commit
e366c65d17
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue