1 /*
2 * Copyright (c) 2003
3 * Information Desire GmbH
4 * All rights reserved.
5 */
6 package com.infodesire.infobit.security;
7
8 import java.util.Collection;
9 import java.util.Properties;
10 /***
11 * security providers for infobit pools shall implement this
12 *
13 * @author konstantin
14 * @created July 30, 2003
15 * @version $Revision: 1.3 $
16 */
17 public interface SecurityProvider {
18 /***
19 * provide name of user or null if none
20 *
21 * @return The Name value
22 */
23 public String getName();
24
25
26
27 /***
28 * whether user has given role
29 *
30 * @param role Description of Parameter
31 * @return Description of the Returned Value
32 */
33 public boolean hasRole(String role);
34
35
36 /***
37 * whether user has one of given roles
38 *
39 * @param roles Description of Parameter
40 * @return Description of the Returned Value
41 */
42 public boolean hasRole(Collection roles);
43
44
45 /***
46 * initialize factory with properties.
47 *
48 * @param properties Description of Parameter
49 */
50 public void init(Properties properties);
51
52
53 /***
54 * whether current user is allowed to modify ACL
55 *
56 * @return The Superuser value
57 */
58 public boolean isSuperuser();
59 }
This page was automatically generated by Maven