|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.security.plugins.SecurityConfig
public class SecurityConfig
The SecurityConfigMBean implementation. This class needs the javax.security.auth.AuthPermission("setLoginConfiguration") to install the javax.security.auth.login.Configuration when running with a security manager.
Field Summary |
---|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
SecurityConfig()
|
Method Summary | |
---|---|
XMLLoginConfig |
getDefaultLoginConfig()
Obtains a reference to the default login configuration bean. |
String |
getLoginConfig()
Get the name of the mbean that provides the default JAAS login configuration |
MBeanServer |
getMbeanServer()
Obtains a reference to the MBeanServer instance. |
String |
getName()
|
void |
popLoginConfig()
Pop the current mbean from the login configuration stack and install the previous Configuration as the current instance. |
void |
pushLoginConfig(String objectName)
Push an mbean onto the login configuration stack and install its Configuration as the current instance. |
void |
pushLoginConfig(XMLLoginConfig loginConfig)
Push the configuration obtained from the specified XMLLoginConfig onto the stack. |
void |
setDefaultLoginConfig(XMLLoginConfig defaultLoginConfig)
Injects the default login configuration bean. |
void |
setLoginConfig(String name)
Set the name of the mbean that provides the default JAAS login configuration |
void |
setMbeanServer(MBeanServer server)
Injects the MBeanServer instance that must be used by this class. |
void |
startService()
Start the configuration service by pushing the mbean given by the LoginConfig onto the configuration stack. |
void |
stopService()
Stop the configuration service by poping the top of the configuration stack. |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Constructor Detail |
---|
public SecurityConfig()
Method Detail |
---|
public String getLoginConfig()
getLoginConfig
in interface SecurityConfigMBean
public void setLoginConfig(String name) throws MalformedObjectNameException
setLoginConfig
in interface SecurityConfigMBean
MalformedObjectNameException
public MBeanServer getMbeanServer()
Obtains a reference to the MBeanServer
instance.
MBeanServer
that has been injected into this class.public void setMbeanServer(MBeanServer server)
Injects the MBeanServer
instance that must be used by this class.
server
- a reference to the MBeanServer
to be used.public XMLLoginConfig getDefaultLoginConfig()
Obtains a reference to the default login configuration bean.
public void setDefaultLoginConfig(XMLLoginConfig defaultLoginConfig)
Injects the default login configuration bean.
defaulLoginConfig
- a reference to the login configuration bean to be used.public void startService() throws Exception
startService
in class ServiceMBeanSupport
Exception
public void stopService() throws Exception
stopService
in class ServiceMBeanSupport
Exception
public void pushLoginConfig(XMLLoginConfig loginConfig)
Push the configuration obtained from the specified XMLLoginConfig
onto the stack.
loginConfig
- a reference to the XMLLoginConfig
instance.public void pushLoginConfig(String objectName) throws JMException, MalformedObjectNameException
pushLoginConfig
in interface SecurityConfigMBean
JMException
MalformedObjectNameException
Configuration
public void popLoginConfig() throws JMException
popLoginConfig
in interface SecurityConfigMBean
JMException
Configuration
public String getName()
getName
in interface ServiceMBean
getName
in class ServiceMBeanSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |