站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

DefaultLoginConfig (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.security.plugins
Class DefaultLoginConfig

java.lang.Object
  extended byorg.jboss.security.plugins.DefaultLoginConfig
All Implemented Interfaces:
javax.management.DynamicMBean

public class DefaultLoginConfig
extends Object
implements javax.management.DynamicMBean

An mbean that uses the default JAAS login configuration file based implementation.

Version:
$Revision: 1.1 $
Author:
Scott.Stark@jboss.org

Constructor Summary
DefaultLoginConfig()
          Creates a new instance of DefaultLoginConfig
 
Method Summary
 Object getAttribute(String name)
           
 javax.management.AttributeList getAttributes(String[] names)
           
 String getAuthConfig()
          Get the resource path to the JAAS login configuration file to use.
 Configuration getConfiguration(Configuration currentConfig)
          Return the Configuration instance managed by this mbean.
 javax.management.MBeanInfo getMBeanInfo()
           
 Object invoke(String method, Object[] args, String[] signature)
           
 void setAttribute(javax.management.Attribute attribute)
           
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributeList)
           
 void setAuthConfig(String authConfURL)
          Set the resource path or URL to the JAAS login configuration file to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLoginConfig

public DefaultLoginConfig()
Creates a new instance of DefaultLoginConfig

Method Detail

getAuthConfig

public String getAuthConfig()
Get the resource path to the JAAS login configuration file to use.


setAuthConfig

public void setAuthConfig(String authConfURL)
                   throws MalformedURLException
Set the resource path or URL to the JAAS login configuration file to use. The default is "auth.conf".

Throws:
MalformedURLException

getConfiguration

public Configuration getConfiguration(Configuration currentConfig)
Return the Configuration instance managed by this mbean. This simply obtains the default Configuration by calling Configuration.getConfiguration. Note that this means this mbean must be the first pushed onto the config stack if it is used.

See Also:
Configuration

getAttribute

public Object getAttribute(String name)
                    throws javax.management.AttributeNotFoundException,
                           javax.management.MBeanException,
                           javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getAttributes

public javax.management.AttributeList getAttributes(String[] names)
Specified by:
getAttributes in interface javax.management.DynamicMBean

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

invoke

public Object invoke(String method,
                     Object[] args,
                     String[] signature)
              throws javax.management.MBeanException,
                     javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributeList)
Specified by:
setAttributes in interface javax.management.DynamicMBean


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.