Class AuthenticationChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- de.codecamp.vaadin.security.spring.authentication.AuthenticationChangeEvent
-
- All Implemented Interfaces:
Serializable
public class AuthenticationChangeEvent extends EventObject
Event object containing information about the changed authentication.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AuthenticationChangeEvent(com.vaadin.flow.server.VaadinSession session, org.springframework.security.core.Authentication authentication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.AuthenticationgetAuthentication()Returns the new authentication.com.vaadin.flow.server.VaadinSessiongetSession()Returns the session for which the authentication changed.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getSession
public com.vaadin.flow.server.VaadinSession getSession()
Returns the session for which the authentication changed.- Returns:
- the session for which the authentication changed
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication()
Returns the new authentication.- Returns:
- the new authentication
-
-