KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > auth > login > DynamicLoginConfigMBean


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.security.auth.login;
8
9 import javax.management.ObjectName JavaDoc;
10
11 import org.jboss.system.ServiceMBean;
12
13 /** The management interface for the DynamicLoginConfig service.
14  *
15  * @author Scott.Stark@jboss.org
16  * @version $Revision: 1.4.6.1 $
17  */

18 public interface DynamicLoginConfigMBean
19    extends ServiceMBean
20 {
21    /** Get the resource path to the JAAS login configuration file to use.
22     */

23    public String JavaDoc getAuthConfig();
24    /** Set the resource path to the JAAS login configuration file to use.
25     * @param authConf - the classpath resource to load.
26     */

27    public void setAuthConfig(String JavaDoc authConf);
28
29    /** Get the XMLLoginConfig service to use for loading.
30     * @return the XMLLoginConfig service name.
31     */

32    public ObjectName JavaDoc getLoginConfigService();
33    /** Get the XMLLoginConfig service to use for loading. This service must
34     * support a String[] loadConfig(URL) operation to load the configurations.
35     *
36     * @param serviceName - the XMLLoginConfig service name.
37     */

38    public void setLoginConfigService(ObjectName JavaDoc serviceName);
39
40    /** Flush the caches of the security domains that have been registered
41     * by this service.
42     * @throws Exception
43     */

44    public void flushAuthenticationCaches() throws Exception JavaDoc;
45
46    /** Get the SecurityManagerService used to flush the registered security
47     * domains.
48     * @return the SecurityManagerService service name.
49     */

50    public ObjectName JavaDoc getSecurityManagerService();
51
52    /** Set the SecurityManagerService used to flush the registered security
53     * domains. This service must support an flushAuthenticationCache(String)
54     * operation to flush the case for the argument security domain. Setting
55     * this triggers the flush of the authentication caches when the service
56     * is stopped.
57     * @param serviceName - the SecurityManagerService service name.
58     */

59    public void setSecurityManagerService(ObjectName JavaDoc serviceName);
60
61 }
62
Popular Tags