Class StandardAuthenticationService
java.lang.Object
de.codecamp.vaadin.security.spring.authentication.StandardAuthenticationService
- All Implemented Interfaces:
VaadinAuthenticationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogin(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 commComponent) Logs out the user associated with the UI of the given component.voidsetAuthenticationResultHandlers(List<AuthenticationResultHandler> authenticationResultHandlers) voidsetLoginProcessingClientUrl(String loginProcessingClientUrl) voidsetLogoutProcessingClientUrl(String logoutProcessingClientUrl) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.codecamp.vaadin.security.spring.authentication.VaadinAuthenticationService
logout
-
Constructor Details
-
StandardAuthenticationService
public StandardAuthenticationService()
-
-
Method Details
-
setLoginProcessingClientUrl
-
setLogoutProcessingClientUrl
-
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 commComponent) 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:
commComponent- any attached component from your UI or the UI itself
-