当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
SecurityConfig (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.security.plugins
Class SecurityConfig
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.security.plugins.SecurityConfig
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, SecurityConfigMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class SecurityConfig
- extends org.jboss.system.ServiceMBeanSupport
- implements SecurityConfigMBean
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.
- Version:
- $Revision: 1.4 $
- Author:
- Scott.Stark@jboss.org
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 |
Method Summary |
String |
getLoginConfig()
Get the name of the mbean that provides the default JAAS login configuration |
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 |
setLoginConfig(String name)
Set the name of the mbean that provides the default JAAS login configuration |
void |
startService()
Start the configuration service by pushing the mbean given by the
LoginConfig onto the configuration stack. |
void |
stopService()
Start the configuration service by poping the top of the
configuration stack. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, 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 |
SecurityConfig
public SecurityConfig()
getName
public String getName()
- Specified by:
getName
in interface org.jboss.system.ServiceMBean
getLoginConfig
public String getLoginConfig()
- Get the name of the mbean that provides the default JAAS login configuration
- Specified by:
getLoginConfig
in interface SecurityConfigMBean
setLoginConfig
public void setLoginConfig(String name)
throws javax.management.MalformedObjectNameException
- Set the name of the mbean that provides the default JAAS login configuration
- Specified by:
setLoginConfig
in interface SecurityConfigMBean
- Throws:
javax.management.MalformedObjectNameException
startService
public void startService()
throws Exception
- Start the configuration service by pushing the mbean given by the
LoginConfig onto the configuration stack.
- Throws:
Exception
stopService
public void stopService()
throws Exception
- Start the configuration service by poping the top of the
configuration stack.
- Throws:
Exception
pushLoginConfig
public void pushLoginConfig(String objectName)
throws javax.management.JMException,
javax.management.MalformedObjectNameException
- Push an mbean onto the login configuration stack and install its
Configuration as the current instance.
- Specified by:
pushLoginConfig
in interface SecurityConfigMBean
- Throws:
javax.management.JMException
javax.management.MalformedObjectNameException
- See Also:
Configuration
popLoginConfig
public void popLoginConfig()
throws javax.management.JMException
- Pop the current mbean from the login configuration stack and install
the previous Configuration as the current instance.
- Specified by:
popLoginConfig
in interface SecurityConfigMBean
- Throws:
javax.management.JMException
- See Also:
Configuration
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.