gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / identitymanagement / SimpleIdentityManager.java @ 1160
History | View | Annotate | Download (1.21 KB)
1 |
package org.gvsig.tools.identitymanagement; |
---|---|
2 |
|
3 |
import javax.naming.AuthenticationException; |
4 |
|
5 |
|
6 |
public interface SimpleIdentityManager { |
7 |
//
|
8 |
// http://en.wikipedia.org/wiki/Identity_management
|
9 |
//
|
10 |
|
11 |
/**
|
12 |
* Authenticate the identity in the system and stablish a session with this
|
13 |
* identity.
|
14 |
* If the identityid don't exists or the password specified is incorrect, throw
|
15 |
* a exception.
|
16 |
*
|
17 |
* If the domain is not required it can not be null.
|
18 |
*
|
19 |
* @param domain, the domain used to authenticate the user
|
20 |
* @param identityid, identity id to login in the system
|
21 |
* @param password
|
22 |
*/
|
23 |
public void login(String domain, String identityid, String password) throws AuthenticationException; |
24 |
|
25 |
/**
|
26 |
* Closes the session stablised with the current identity.
|
27 |
*/
|
28 |
public void logout(); |
29 |
|
30 |
/**
|
31 |
* Return the identity of the current session in the system or null if no has a
|
32 |
* session stablisehd.
|
33 |
*
|
34 |
* @return the current identity
|
35 |
*/
|
36 |
public SimpleIdentity getCurrentIdentity();
|
37 |
|
38 |
/**
|
39 |
* Inform if the login process require a domain name.
|
40 |
*
|
41 |
* @return true if a domain name is required.
|
42 |
*/
|
43 |
public boolean needDomain(); |
44 |
} |