List of usage examples for org.springframework.security.web.authentication.switchuser AuthenticationSwitchUserEvent getAuthentication
public Authentication getAuthentication()
Authentication request that caused the event. From source file:edu.uiowa.icts.authentication.SwitchUserListener.java
@Override public void onApplicationEvent(AuthenticationSwitchUserEvent event) { AuditLogger.info("", event.getAuthentication().getName(), "Switch User", "User switch from " + event.getAuthentication().getName() + " to " + event.getTargetUser().getUsername()); log.info("User switch from " + event.getAuthentication().getName() + " to " + event.getTargetUser().getUsername()); }