1
|
/**
|
2
|
* Copyright (C) 2015 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.vaadin.view;
|
10
|
|
11
|
import eu.etaxonomy.cdm.common.URI;
|
12
|
|
13
|
/**
|
14
|
* @author cmathew
|
15
|
* @since 28.04.2015
|
16
|
*/
|
17
|
public interface IAuthenticationComponent {
|
18
|
|
19
|
public interface AuthenticationComponentListener {
|
20
|
|
21
|
/**
|
22
|
* @param uri
|
23
|
* @param context
|
24
|
* @param userName
|
25
|
* @param password
|
26
|
* @return
|
27
|
*/
|
28
|
boolean login(URI uri, String context, String userName, String password);
|
29
|
}
|
30
|
|
31
|
public void addListener(AuthenticationComponentListener listener);
|
32
|
|
33
|
}
|