@CompileStatic class SecurityEventListener extends java.lang.Object implements ApplicationListener<ApplicationEvent>, ApplicationContextAware
Registers as an event listener and delegates handling of security-related events
to optional closures defined in Config.groovy.
The following callbacks are supported:
grails {
plugin {
springsecurity {
...
onAuthenticationSuccessEvent = { e, appCtx ->
...
}
}
}
}
The event and the Spring context are provided in case you need to look up a Spring bean,
e.g. the Hibernate SessionFactory. | Type | Name and description |
|---|---|
ApplicationContext |
applicationContext |
| Constructor and description |
|---|
SecurityEventListener() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
call(ApplicationEvent e, java.lang.String closureName) |
|
void |
onApplicationEvent(ApplicationEvent e) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |