Package io.jmix.core.security.event
Class UserSubstitutedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.core.security.event.UserSubstitutedEvent
- All Implemented Interfaces:
Serializable
public class UserSubstitutedEvent
extends org.springframework.context.ApplicationEvent
Event published after user substituted and new
Authentication
is set to current SecurityContext
.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionUserSubstitutedEvent
(org.springframework.security.core.userdetails.UserDetails authenticatedUser, org.springframework.security.core.userdetails.UserDetails substitutedUser) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
org.springframework.security.core.userdetails.UserDetails
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
UserSubstitutedEvent
public UserSubstitutedEvent(org.springframework.security.core.userdetails.UserDetails authenticatedUser, org.springframework.security.core.userdetails.UserDetails substitutedUser)
-
-
Method Details
-
getAuthenticatedUser
public org.springframework.security.core.userdetails.UserDetails getAuthenticatedUser() -
getSubstitutedUser
public org.springframework.security.core.userdetails.UserDetails getSubstitutedUser()
-