mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 04:52:16 +00:00
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…
x
Reference in New Issue
Block a user