Revision 93fcde18
Added by Cherian Mathew almost 9 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/IAuthenticationComponent.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.cdm.vaadin.view; |
2 | 2 |
|
3 |
import org.springframework.security.core.Authentication; |
|
3 |
import java.net.URI; |
|
4 |
|
|
4 | 5 |
|
5 | 6 |
|
6 | 7 |
public interface IAuthenticationComponent { |
7 |
|
|
8 |
|
|
8 | 9 |
public interface AuthenticationComponentListener { |
9 |
Authentication login(String userName, String password); |
|
10 |
|
|
11 |
/** |
|
12 |
* @param uri |
|
13 |
* @param context |
|
14 |
* @param userName |
|
15 |
* @param password |
|
16 |
* @return |
|
17 |
*/ |
|
18 |
boolean login(URI uri, String context, String userName, String password); |
|
10 | 19 |
} |
11 | 20 |
public void addListener(AuthenticationComponentListener listener); |
12 |
|
|
21 |
|
|
13 | 22 |
|
14 | 23 |
} |
Also available in: Unified diff
fix for #4844
CdmVaadinAuthentication : new class used for authentication
AuthenticationPresenter, AbstractAuthenticatedUI, CdmVaadinSessionUtilities, AuthenticationView, IAuthenticationComponent : using new authentication object linked to host and context path
CdmVaadinBaseTest, AuthenticationPresenterTest : test classes for new authentication