KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > security > realm > factory > JResourceDSMBean


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or 1any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer: Florent Benoit
22  * --------------------------------------------------------------------------
23  * $Id: JResourceDSMBean.java,v 1.3 2004/05/25 15:13:28 benoitf Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas.security.realm.factory;
28
29 /**
30  * Define the methods for the MBean
31  * @author Florent Benoit
32  */

33 public interface JResourceDSMBean extends JResourceMBean {
34
35     /**
36      * Clear the cache
37      */

38     void clearCache();
39
40     // Setters
41

42     /**
43      * Set the name of the resource to use
44      * @param dsName name of the resource
45      */

46     void setDsName(String JavaDoc dsName);
47
48     /**
49      * Set the name of the table which have the username/password
50      * @param userTable name of the table which have the username/password
51      */

52     void setUserTable(String JavaDoc userTable);
53
54     /**
55      * Set the name of the column of the username of the user table
56      * @param userTableUsernameCol name of the column of the username of the
57      * user table
58      */

59     void setUserTableUsernameCol(String JavaDoc userTableUsernameCol);
60
61     /**
62      * Set the name of column of the password of the user table
63      * @param userTablePasswordCol name of column of the password of the user
64      * table
65      */

66     void setUserTablePasswordCol(String JavaDoc userTablePasswordCol);
67
68     /**
69      * Set the name of table which have the username/role
70      * @param roleTable name of table which have the username/role
71      */

72     void setRoleTable(String JavaDoc roleTable);
73
74     /**
75      * Set the name of the column of the username of the role table
76      * @param roleTableUsernameCol name of the column of the username of the
77      * role table
78      */

79     void setRoleTableUsernameCol(String JavaDoc roleTableUsernameCol);
80
81     /**
82      * Set the name of the column of the role of the role table
83      * @param roleTableRolenameCol name of the column of the role of the role
84      * table
85      */

86     void setRoleTableRolenameCol(String JavaDoc roleTableRolenameCol);
87
88     /**
89      * Set the default algorithm to use
90      * @param algorithm algorithm to be used
91      */

92     void setAlgorithm(String JavaDoc algorithm);
93
94     // Getters
95

96     /**
97      * Get the name of the resource to use
98      * @return name of the resource
99      */

100     String JavaDoc getDsName();
101
102     /**
103      * Get the name of the table which have the username/password
104      * @return name of the table which have the username/password
105      */

106     String JavaDoc getUserTable();
107
108     /**
109      * Get the name of the column of the username of the user table
110      * @return name of the column of the username of the user table
111      */

112     String JavaDoc getUserTableUsernameCol();
113
114     /**
115      * Get the name of column of the password of the user table
116      * @return name of column of the password of the user table
117      */

118     String JavaDoc getUserTablePasswordCol();
119
120     /**
121      * Get the name of table which have the username/role
122      * @return name of table which have the username/role
123      */

124     String JavaDoc getRoleTable();
125
126     /**
127      * Get the name of the column of the username of the role table
128      * @return name of the column of the username of the role table
129      */

130     String JavaDoc getRoleTableUsernameCol();
131
132     /**
133      * Get the name of the column of the role of the role table
134      * @return name of the column of the role of the role table
135      */

136     String JavaDoc getRoleTableRolenameCol();
137
138     /**
139      * Get the default algorithm
140      * @return the default algorithm
141      */

142     String JavaDoc getAlgorithm();
143
144 }
Popular Tags