KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > plugins > SecurityConfigMBean


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.plugins;
8
9 import javax.management.JMException JavaDoc;
10 import javax.management.MalformedObjectNameException JavaDoc;
11
12 import org.jboss.system.ServiceMBean;
13
14 /** A security configuration MBean. This establishes the JAAS and Java2
15  security properties and related configuration.
16
17  @see DefaultLoginConfig
18  @see javax.security.auth.login.Configuration
19
20 @author Scott.Stark@jboss.org
21 @version $Revision: 1.2 $
22 */

23 public interface SecurityConfigMBean extends ServiceMBean
24 {
25    /** Get the name of the mbean that provides the default JAAS login configuration */
26    public String JavaDoc getLoginConfig();
27    /** Set the name of the mbean that provides the default JAAS login configuration */
28    public void setLoginConfig(String JavaDoc objectName) throws MalformedObjectNameException JavaDoc;
29    /** Push an mbean onto the login configuration stack and install its
30     Configuration as the current instance.
31     @see javax.security.auth.login.Configuration
32     */

33    public void pushLoginConfig(String JavaDoc objectName) throws JMException JavaDoc, MalformedObjectNameException JavaDoc;
34    /** Pop the current mbean from the login configuration stack and install
35     the previous Configuration as the current instance.
36     @see javax.security.auth.login.Configuration
37     */

38    public void popLoginConfig() throws JMException JavaDoc;
39
40 }
41
Popular Tags