aboutsummaryrefslogtreecommitdiffstats
path: root/odl-aaa-moon/aaa/aaa-authn-api/src/main/java/org/opendaylight/aaa/api/IdMService.java
blob: 1d698da521ce21a85382741ea3ddb266815f8595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Copyright (c) 2014 Hewlett-Packard Development Company, L.P. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

package org.opendaylight.aaa.api;

import java.util.List;

/**
 * A service to provide identity information.
 *
 * @author liemmn
 *
 */
public interface IdMService {
    /**
     * List all domains that the given user has at least one role on.
     *
     * @param userId
     *            id of user
     * @return list of all domains that the given user has access to
     */
    List<String> listDomains(String userId);

    /**
     * List all roles that the given user has on the given domain.
     *
     * @param userId
     *            id of user
     * @param domain
     *            domain
     * @return list of roles
     */
    List<String> listRoles(String userId, String domain);
}