Class AuthenticationChangeEvent
java.lang.Object
java.util.EventObject
de.codecamp.vaadin.security.spring.authentication.AuthenticationChangeEvent
- All Implemented Interfaces:
Serializable
Event object containing information about the changed authentication.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationChangeEvent(com.vaadin.flow.server.VaadinSession session, org.springframework.security.core.Authentication authentication) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.AuthenticationReturns the new authentication.com.vaadin.flow.server.VaadinSessionReturns the session for which the authentication changed.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AuthenticationChangeEvent
public AuthenticationChangeEvent(com.vaadin.flow.server.VaadinSession session, org.springframework.security.core.Authentication authentication)
-
-
Method Details
-
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
-