Class StandardAuthenticationService
- java.lang.Object
-
- de.codecamp.vaadin.security.spring.authentication.StandardAuthenticationService
-
- All Implemented Interfaces:
VaadinAuthenticationService
public class StandardAuthenticationService extends Object implements VaadinAuthenticationService
-
-
Constructor Summary
Constructors Constructor Description StandardAuthenticationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogin(com.vaadin.flow.component.Component commComponent, String username, String password, boolean rememberMe, AuthenticationResultHandler primaryHandler)Performs the authentication attempt against Spring Security and call the provided handler with the result.voidlogout(com.vaadin.flow.component.Component component)Logs out the user associated with the UI of the given component.voidsetAuthenticationResultHandlers(List<AuthenticationResultHandler> authenticationResultHandlers)voidsetLoginProcessingClientUrl(String loginProcessingClientUrl)voidsetLogoutClientUrl(String logoutClientUrl)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.codecamp.vaadin.security.spring.authentication.VaadinAuthenticationService
logout
-
-
-
-
Method Detail
-
setLoginProcessingClientUrl
public void setLoginProcessingClientUrl(String loginProcessingClientUrl)
-
setLogoutClientUrl
public void setLogoutClientUrl(String logoutClientUrl)
-
setAuthenticationResultHandlers
public void setAuthenticationResultHandlers(List<AuthenticationResultHandler> authenticationResultHandlers)
-
login
public void login(com.vaadin.flow.component.Component commComponent, String username, String password, boolean rememberMe, AuthenticationResultHandler primaryHandler)Description copied from interface:VaadinAuthenticationServicePerforms the authentication attempt against Spring Security and call the provided handler with the result.The provided
commComponentused for communication with the client-side must be enabled. So don't pass in aLoginFormor aButtonwith "disable on click".- Specified by:
loginin interfaceVaadinAuthenticationService- Parameters:
commComponent- any component in the login view that will be used for communication with the client-side; the component must be attached and enabledusername- the user namepassword- the passwordrememberMe- whether remember-me should be used; only has an effect when that feature is actually activatedprimaryHandler- the handler that will be notified first with the result once the login attempt has completed; may be null
-
logout
public void logout(com.vaadin.flow.component.Component component)
Description copied from interface:VaadinAuthenticationServiceLogs out the user associated with the UI of the given component. Affects all UIs in the user's session, not just the provided one.- Specified by:
logoutin interfaceVaadinAuthenticationService- Parameters:
component- any attached component from your UI or the UI itself
-
-