1
2
3
4
5
6
7 package gov.bnl.gums;
8
9 /*** Defines the logic with which a user will be mapped to a local account.
10 * As of now, the logic is a simple certificate subject mapped to a user
11 * account. In the future this interface will be extended to map the credential
12 * of a full proxy (DN, vo, role, group) to a user and group account.
13 *
14 * @author Gabriele Carcassi
15 */
16 public interface AccountMapper {
17
18 /***
19 * Maps a grid identity to a local account name.
20 * @param userDN the certificate DN (i.e. '/DC=org/DC=doegrids/OU=People/CN=Gabriele Carcassi').
21 * @return a user account (i.e. 'atlas').
22 */
23 String mapUser(String userDN);
24
25 }