001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999-2004 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or 1any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * Initial developer: Florent Benoit
022: * --------------------------------------------------------------------------
023: * $Id: JResourceDSMBean.java 4804 2004-05-25 15:13:29Z benoitf $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas.security.realm.factory;
026:
027: /**
028: * Define the methods for the MBean
029: * @author Florent Benoit
030: */
031: public interface JResourceDSMBean extends JResourceMBean {
032:
033: /**
034: * Clear the cache
035: */
036: void clearCache();
037:
038: // Setters
039:
040: /**
041: * Set the name of the resource to use
042: * @param dsName name of the resource
043: */
044: void setDsName(String dsName);
045:
046: /**
047: * Set the name of the table which have the username/password
048: * @param userTable name of the table which have the username/password
049: */
050: void setUserTable(String userTable);
051:
052: /**
053: * Set the name of the column of the username of the user table
054: * @param userTableUsernameCol name of the column of the username of the
055: * user table
056: */
057: void setUserTableUsernameCol(String userTableUsernameCol);
058:
059: /**
060: * Set the name of column of the password of the user table
061: * @param userTablePasswordCol name of column of the password of the user
062: * table
063: */
064: void setUserTablePasswordCol(String userTablePasswordCol);
065:
066: /**
067: * Set the name of table which have the username/role
068: * @param roleTable name of table which have the username/role
069: */
070: void setRoleTable(String roleTable);
071:
072: /**
073: * Set the name of the column of the username of the role table
074: * @param roleTableUsernameCol name of the column of the username of the
075: * role table
076: */
077: void setRoleTableUsernameCol(String roleTableUsernameCol);
078:
079: /**
080: * Set the name of the column of the role of the role table
081: * @param roleTableRolenameCol name of the column of the role of the role
082: * table
083: */
084: void setRoleTableRolenameCol(String roleTableRolenameCol);
085:
086: /**
087: * Set the default algorithm to use
088: * @param algorithm algorithm to be used
089: */
090: void setAlgorithm(String algorithm);
091:
092: // Getters
093:
094: /**
095: * Get the name of the resource to use
096: * @return name of the resource
097: */
098: String getDsName();
099:
100: /**
101: * Get the name of the table which have the username/password
102: * @return name of the table which have the username/password
103: */
104: String getUserTable();
105:
106: /**
107: * Get the name of the column of the username of the user table
108: * @return name of the column of the username of the user table
109: */
110: String getUserTableUsernameCol();
111:
112: /**
113: * Get the name of column of the password of the user table
114: * @return name of column of the password of the user table
115: */
116: String getUserTablePasswordCol();
117:
118: /**
119: * Get the name of table which have the username/role
120: * @return name of table which have the username/role
121: */
122: String getRoleTable();
123:
124: /**
125: * Get the name of the column of the username of the role table
126: * @return name of the column of the username of the role table
127: */
128: String getRoleTableUsernameCol();
129:
130: /**
131: * Get the name of the column of the role of the role table
132: * @return name of the column of the role of the role table
133: */
134: String getRoleTableRolenameCol();
135:
136: /**
137: * Get the default algorithm
138: * @return the default algorithm
139: */
140: String getAlgorithm();
141:
142: }
|