org.springframework.security.access.event.AbstractAuthorizationEvent Java Examples
The following examples show how to use
org.springframework.security.access.event.AbstractAuthorizationEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GenericEventAdapter.java From inception with Apache License 2.0 | 5 votes |
@Override public boolean accepts(Object aEvent) { return aEvent instanceof ApplicationEvent && !( aEvent instanceof ApplicationContextEvent || aEvent instanceof ServletRequestHandledEvent || aEvent instanceof SessionCreationEvent || aEvent instanceof SessionDestroyedEvent || aEvent instanceof AbstractAuthorizationEvent || aEvent instanceof AbstractAuthenticationEvent || aEvent instanceof WebServerInitializedEvent); }
Example #2
Source File: PathAuthorizationAuditListener.java From zhcet-web with Apache License 2.0 | 5 votes |
@Override public void onApplicationEvent(AbstractAuthorizationEvent event) { if (event instanceof AuthenticationCredentialsNotFoundEvent) { onAuthenticationCredentialsNotFoundEvent( (AuthenticationCredentialsNotFoundEvent) event); } else if (event instanceof AuthorizationFailureEvent) { onAuthorizationFailureEvent((AuthorizationFailureEvent) event); } }
Example #3
Source File: ExposeAttemptedPathAuthorizationAuditListener.java From tutorials with MIT License | 4 votes |
@Override public void onApplicationEvent(AbstractAuthorizationEvent event) { if (event instanceof AuthorizationFailureEvent) { onAuthorizationFailureEvent((AuthorizationFailureEvent) event); } }