org.jboss.security.plugins
Class DefaultLoginConfig

java.lang.Object
  extended by org.jboss.security.plugins.DefaultLoginConfig
All Implemented Interfaces:
DynamicMBean

public class DefaultLoginConfig
extends Object
implements DynamicMBean

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

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

Constructor Summary
DefaultLoginConfig()
          Creates a new instance of DefaultLoginConfig
 
Method Summary
 Object getAttribute(String name)
           
 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.
 MBeanInfo getMBeanInfo()
           
 Object invoke(String method, Object[] args, String[] signature)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(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 AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

getAttributes

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

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean

invoke

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

setAttribute

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

setAttributes

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


Copyright © 2009 JBoss Inc.. All Rights Reserved.