io.lsn.spring.auth.event.AuthenticatedEvent Maven / Gradle / Ivy
package io.lsn.spring.auth.event;
import io.lsn.spring.auth.entity.User;
import org.springframework.context.ApplicationEvent;
/**
* event propagated after successful authentication
* @author Patryk Szlagowski
*/
public class AuthenticatedEvent extends ApplicationEvent {
private User user;
public AuthenticatedEvent(Object source, User user) {
super(source);
this.user = user;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}